Fix for note cursor being reset while editing (since r5572)
This commit is contained in:
parent
473d9e3c17
commit
53d2fb6fe9
|
@ -2323,7 +2323,7 @@ Zotero.Item.prototype.getNote = function() {
|
|||
// Don't include <div> wrapper when returning value
|
||||
var startLen = note.substr(0, 36).match(/^<div class="zotero-note znv[0-9]+">/)[0].length;
|
||||
var endLen = 6; // "</div>".length
|
||||
note = note.substr(startLen, note.length - endLen);
|
||||
note = note.substr(startLen, note.length - startLen - endLen);
|
||||
}
|
||||
|
||||
this._noteText = note ? note : '';
|
||||
|
|
Loading…
Reference in New Issue
Block a user