Freeze note schema version to 8
We can do it because it was only used to create a note from annotations. No need to update schema version in Zotero client, unless using new features when creating a note from annotations.
This commit is contained in:
parent
44ef4cd35a
commit
d595b3f195
2 changed files with 8 additions and 6 deletions
|
@ -307,7 +307,11 @@ describe("Item pane", function () {
|
|||
// Wait for asynchronous editor update
|
||||
do {
|
||||
yield Zotero.Promise.delay(10);
|
||||
} while(noteEditor._editorInstance._iframeWindow.wrappedJSObject.getDataSync().html.replace(/\n/g,'') != `<div data-schema-version="${Zotero.EditorInstance.SCHEMA_VERSION}"><p>Test</p></div>`);
|
||||
} while (
|
||||
!/<div data-schema-version=".*"><p>Test<\/p><\/div>/.test(
|
||||
noteEditor._editorInstance._iframeWindow.wrappedJSObject.getDataSync().html.replace(/\n/g, '')
|
||||
)
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue