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
If I add highlighting/markers to editor text using Anchors, the marker layer does not dynamically update as expected if I type before the highlighted section in the editor.
It does however update if I make a deletion edit, or double click.
So, the update function for the Marker or Anchor is not being called for insert events. Is this to do with Vue's virtual DOM? Any suggested workaround?
Actually I found a workaround: on the editor, I listen for @input events in order to save updates automatically. In the related function I added this.aceEditor.updateSelectionMarkers();
If I add highlighting/markers to editor text using Anchors, the marker layer does not dynamically update as expected if I type before the highlighted section in the editor.
It does however update if I make a deletion edit, or double click.
So, the update function for the Marker or Anchor is not being called for insert events. Is this to do with Vue's virtual DOM? Any suggested workaround?
Here's how I am adding a highlight:
I have also tried using
addDynamicMarker
with a custom update function. Same problem.The text was updated successfully, but these errors were encountered: