A
A
Alexey selftrips.ru2017-11-10 16:42:09
TinyMCE
Alexey selftrips.ru, 2017-11-10 16:42:09

What could be the problem that the tinyMCE editor does not process custom styles in the editor?

editor-style.css created.
tried to code

function my_theme_add_editor_styles() {
  add_editor_style( 'editor-styles.css' );
}
add_action( 'current_screen', 'my_theme_add_editor_styles' );

and in functions.php and theme_functions.php does not help.
How do you understand what the problem is - the editor does not see the styles or sees but does not work out?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anatoly, 2019-02-13
@Tolly

add_action( 'after_setup_theme', 'my_theme_add_editor_styles' );
function my_theme_add_editor_styles() {
  add_editor_style( 'editor-style.css' );
}

it's probably a hook

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question