JSAbrahams / Academic-Journal

📚 A journal to keep track of notes
MIT License
1 stars 1 forks source link

[BUG] Reference positions are not updated with the text #26

Closed JSAbrahams closed 4 years ago

JSAbrahams commented 4 years ago

Describe the bug Reference positions are not updated if we add/shift text. Same for deleting text, as the end position is not updated either.

Expected behavior I we add text before a reference, it's position should be updated in file.

Additional context It does seem that the text area does already implement logic for moving around highlights, so if we could observe the start and end positions, we could link this to the actual ReferencePosition, and this issue would be solved.