How can I change the title ckeditor sets for inline instances?

扶醉桌前 提交于 2019-12-02 17:33:46

问题


Right now it sets it to Rich text editor, element_id. Is there any way to change that?


回答1:


In ckeditor.js search for the following string:

a.changeAttr("title",c)

And justs set it to an empty string if you want:

a.changeAttr("title",'');

Keep In mind, you'll lose this during an update, but this is the only way until they add it to their editable configurations. Only use this if you don't mind losing some a11y.




回答2:


This title is set in CKEDITOR.editable. You can change it by:

  • modifying this code,
  • changing translation in lang/<your lang>.js (e.g. https://github.com/ckeditor/ckeditor-dev/blob/master/lang/en-gb.js#L30)

But when you'll modify it, remember that this title is there to provide a11y.



来源:https://stackoverflow.com/questions/14502142/how-can-i-change-the-title-ckeditor-sets-for-inline-instances

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