Upgrade note-editor schema to v3:
- No longer store `text` property in highlight annotation - Remove `text` property when modifying a note
This commit is contained in:
parent
43bd1af3e9
commit
3beb858275
3 changed files with 3 additions and 5 deletions
|
@ -42,7 +42,7 @@ const DOWNLOADED_IMAGE_TYPE = [
|
|||
];
|
||||
|
||||
// Schema version here has to be the same as in note-editor!
|
||||
const SCHEMA_VERSION = 2;
|
||||
const SCHEMA_VERSION = 3;
|
||||
|
||||
class EditorInstance {
|
||||
constructor() {
|
||||
|
@ -249,8 +249,6 @@ class EditorInstance {
|
|||
|
||||
let storedAnnotation = {
|
||||
uri: Zotero.URI.getItemURI(attachmentItem),
|
||||
// trim() here is necessary because of already existing annotations
|
||||
text: annotation.text ? annotation.text.trim() : annotation.text,
|
||||
color: annotation.color,
|
||||
pageLabel: annotation.pageLabel,
|
||||
position: annotation.position
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 37dbfa4c51ffaede5c0bc9467eec7136ab3dac7d
|
||||
Subproject commit c801eb5df1b15b73e118494a7dffb9c86f55ba29
|
|
@ -1 +1 @@
|
|||
Subproject commit e6c7f500e60c474531b7604457f412ab449c2dde
|
||||
Subproject commit c3cb12531f99e6bbedc16e965488946e217166d9
|
Loading…
Reference in a new issue