The forecolor and backcolor buttons do not appear in TinyMCE

This is my code:

tinymce.init({ selector: "textarea", menubar: false, theme_advanced_font_sizes: "10px,12px,13px,14px,16px,18px,20px", font_size_style_values: "12px,13px,14px,16px,18px,20px", toolbar: "bold italic underline strikethrough subscript superscript alignleft aligncenter alignright forecolor backcolor fontsizeselect" }); 

The forecolor and backcolor buttons do not appear when loading. I'm not wrong. Everything else works fine.

I am using version 4.0b3 (2013-05-15)

Edit: It might be useful to know that I am pulling HTML code through ajax, and JS is inside HTML.

+4
source share
1 answer

So, I did not understand this, but forecolor and backcolor are actually part of the textcolor plugin, so I had to add this:

plugins: "textcolor"

+12
source

Source: https://habr.com/ru/post/1484217/


All Articles