Problems with gecko_spellcheck in TinyMCE

独自空忆成欢 提交于 2019-12-11 07:15:51

问题


I want to prevent TinyMCE disabling gecko spellcheck. I've added gecko_spellcheck : true to config. It works fine, but when I type a new paragraph all highlights of previous paragraph are gone. Some illustrations:

When I make right click on textarea and disable/enable spellchecking, all of errors are highlighted. How can I make TinyMCE always to highlight errors?


回答1:


This is a problem that can be resolved. If you reset the tinymce iframe body everything that is spelled incorrectly gets underlined.

You may use this ed.getBody.innerHTML = ed.getBody.innerHTML; to make it work.



来源:https://stackoverflow.com/questions/8634106/problems-with-gecko-spellcheck-in-tinymce

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!