rangy - The highlighter restoration won't work perfectly -


the 3 highlightened words type:textcontent|14682$14685$2$mydict_highlighted$|14705$14715$1$mydict_highlighted$|14821$14829$3$mydict_highlighted$

my css name mydict_highlighted

inline

after reloading page, result strange

restoreselection() {     var docurl = getdocumenturl();     const storedwords = localstorage[docurl]     if (storedwords)  {         this.highlighter.deserialize(storedwords);     } } 

inline


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -