How to change link color on tinymce once linked added?

前端 未结 1 1436
耶瑟儿~
耶瑟儿~ 2021-01-17 01:48

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

1条回答
  •  既然无缘
    2021-01-17 02:29

    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.

    0 讨论(0)
提交回复
热议问题