Search code examples
asp.nettinymce

Make text to the default style


I am using tinyMCE editor in my asp.net application, What I want to if some has change the text color to red or green etc., then automatically text color change to the default color (Black).

What should I do for that?


Solution

  • There are two ways to get what you want:

    1. Fiddle with the style plugin code to set the text color

    2. The more promising way: after tinymce init you could bind a handler to the UI-Style-Elements in order to decide when to set the text color to black