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
after reloading page, result strange
restoreselection() { var docurl = getdocumenturl(); const storedwords = localstorage[docurl] if (storedwords) { this.highlighter.deserialize(storedwords); } }
Comments
Post a Comment