diff --git a/chrome/content/zotero/xpcom/editorInstance.js b/chrome/content/zotero/xpcom/editorInstance.js index eec35f901e..5e4bf51774 100644 --- a/chrome/content/zotero/xpcom/editorInstance.js +++ b/chrome/content/zotero/xpcom/editorInstance.js @@ -43,9 +43,6 @@ const DOWNLOADED_IMAGE_TYPE = [ 'image/png' ]; -// Schema version here has to be the same as in note-editor! -const SCHEMA_VERSION = 8; - class EditorInstance { constructor() { this.instanceID = Zotero.Utilities.randomString(); @@ -1258,7 +1255,9 @@ class EditorInstance { let { html: serializedHTML, citationItems } = Zotero.EditorInstanceUtilities.serializeAnnotations(jsonAnnotations, true); html += serializedHTML; citationItems = encodeURIComponent(JSON.stringify(citationItems)); - html = `
Test
Test<\/p><\/div>/.test( + noteEditor._editorInstance._iframeWindow.wrappedJSObject.getDataSync().html.replace(/\n/g, '') + ) + ); }); });