How to change link color on tinymce once linked added?

為{幸葍}努か 提交于 2019-12-30 14:25:19

问题


I've modify my tinymce to add class to anchot tag and changed the color. below is my code


回答1:


The link plugin does not fire any events of its own when you insert a new link. The list of events the editor does fire are documented here:

https://www.tinymce.com/docs/advanced/events/#editorevents

You can check to see what events get triggered by an action and then add code to act upon that event just as you have for the click event.

The other alternative is to modify the code of the link plugin to do what you need - just know that at that point you will need to re-create those modifications each time you update TinyMCE.



来源:https://stackoverflow.com/questions/44747796/how-to-change-link-color-on-tinymce-once-linked-added

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