C
C
Chokatillo2017-10-06 11:25:10
HTML
Chokatillo, 2017-10-06 11:25:10

Changing the styles of the default TinyMCE WordPress editor in the frontend?

It is not difficult to change the editor styles in the admin
panel. It is enough to leave the line in the function:

add_editor_style('editor-style.css');

или

add_editor_style('custom-editor-style.css');

And in the root of the site, create a style file with one of these names
. This works, but for some reason does not work if you display the editor form in the frontend when adding / editing a post through the frontend
. For example, you can post through the frontend through the WP-Recall
plugin. The plugin uses a standard form and here the styles still do not change, when at the same time in the admin panel the styles are really already custom
What can I do?
Thank you!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Shokhrov, 2019-06-29
@Araya

And so?
Judging by this , if you need exactly one of the classes not known in advance, the trash is more reliable, because the c option containsdoes not pay attention to whether the entire class name matches (the substring is simply searched for). The selector option proposed there

…[contains(concat(' ', normalize-space(@class), ' '), ' CLASSNAME ')]…

Z
zorca, 2017-10-06
@zorca

Load the style custom-editor-style.cssto the front.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question