You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since version v5.20.0, JSONEditor contains new methods update and updateText which keep the current state of the editor when in modes tree, form, and view. These methods work for text and code too, but there the caret position is lost when updating the contents of the editor.
It would be great if the caret position could be maintained too. Ace editor has support for updating with a text diff, that will be really useful. I think we'll need a text diff library to determine which parts are changed, so we can calculate how much the old selection needs to move up or down to match the same contents.
The text was updated successfully, but these errors were encountered:
Since version
v5.20.0
, JSONEditor contains new methodsupdate
andupdateText
which keep the current state of the editor when in modestree
,form
, andview
. These methods work fortext
andcode
too, but there the caret position is lost when updating the contents of the editor.It would be great if the caret position could be maintained too. Ace editor has support for updating with a text diff, that will be really useful. I think we'll need a text diff library to determine which parts are changed, so we can calculate how much the old selection needs to move up or down to match the same contents.
The text was updated successfully, but these errors were encountered: