Skip to content

Commit

Permalink
fix: set metadata via context menu using old syntax for metadata stor…
Browse files Browse the repository at this point in the history
…age (#9)
  • Loading branch information
Fevol committed Mar 8, 2024
1 parent fe6e372 commit 3e32e90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/editor/base/ranges/base_range.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,13 @@ export abstract class CriticMarkupRange {
return [{
from: this.from + 3,
to: this.metadata,
insert: JSON.stringify(fields).slice(1, -1),
insert: JSON.stringify(fields),
}];
} else {
return [{
from: this.from + 3,
to: this.from + 3,
insert: `${JSON.stringify(fields)}`.slice(1, -1) + '@@',
insert: JSON.stringify(fields) + '@@',
}];
}
}
Expand Down

0 comments on commit 3e32e90

Please sign in to comment.