Change the appearance of the short code in the wordpress tinymce editor

Can I change the appearance of a short code in the TinyMCE Wordpress editor? One of my clients does not have knowledge of HTML, and it is very difficult to explain to him what not to edit on subpages.

By default, shortcodes look like this:

Default view

And I want to achieve this:

Desired view

Does TinyMCE support any kind of custom filtering?

+6
source share
1 answer

Looks like you should use SyntaxHighlighter plugin with TinyMCE - Adding SyntaxHighlighter to TinyMCE

After you integrate, create a new brush that will be colored [shortcode] .

+3
source

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


All Articles