A
A
Anatoly2019-02-13 05:46:41
TinyMCE
Anatoly, 2019-02-13 05:46:41

Why does the paragraph button not work in the TinyMCE (Wordpress) editor?

Why does nothing happen when I click on the Paragraph button in the header of the standard wordpress editor?
Killed 4 hours of time, and could not understand why it does not work.
I checked that it does not work - in text mode. Checked on 2 sites. Gutenberg disabled by hand and plugin.
Headings are inserted.
WP 5.0.3.
functions.php:

add_filter( 'tiny_mce_before_init', 'my_format_TinyMCE' );
function my_format_TinyMCE( $in ) {
    $in['extended_valid_elements'] = 'p[*]';
  return $in;
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anatoly, 2019-03-12
@Tolly

It turns out that it is not visible in a text editor when writing an article, but after publication, the paragraphs miraculously become escaped<p><p>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question