添加链接后,如何更改tinymce上的链接颜色? [英] How to change link color on tinymce once linked added?
问题描述
我已经修改了我的tinymce,以将类添加到锚定标签中并更改了颜色.下面是我的代码
I've modify my tinymce to add class to anchot tag and changed the color. below is my code
推荐答案
link
插件在插入新链接时不会触发其自身的任何事件.编辑器触发的事件列表记录在这里:
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
您可以查看某个动作触发了哪些事件,然后像添加click
事件一样添加代码以对该事件执行操作.
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.
另一种选择是修改link
插件的代码以执行所需的操作-仅知道在那一点上,您每次更新TinyMCE时都需要重新创建这些修改.
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.
这篇关于添加链接后,如何更改tinymce上的链接颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!