I have added some text on tinymce editor on load.
(Every time you click on Add new the tinymce editor load with this text.)
but problem is how to enable css class which are using in default text.
Thanks
I have added some text on tinymce editor on load.
(Every time you click on Add new the tinymce editor load with this text.)
but problem is how to enable css class which are using in default text.
Thanks
You must be logged in to post a comment.
Use
add_editor_style
e.g.: functions.php
http://codex.wordpress.org/Function_Reference/add_editor_style
add_editor_style
is recommended for theme.You can
mce_css
filter in plugin. The following sample code is from hereNothing I found worked. Took me half a day on Google, but finally stumbled upon this script that works:
Source of snippet.