How can I register a custom “Text Pattern” (WP 4.3) for TinyMCE?
How can I register a custom “Text Pattern” (WP 4.3) for TinyMCE?
How can I register a custom “Text Pattern” (WP 4.3) for TinyMCE?
WordPress editor converted/deleted HTML entities code
How to display full width block without toolbar?
Yes and no. There is a feature called “nested blocks” that will let a developer create a block that contains other blocks. This is useful for specific template-type approaches. But, if you’re asking just as a general content author if you can easily put your blocks all together, no, you cannot. They are designed to … Read more
problem adding code into wp editor for https://wordpress.org/support [closed]
This error was corrected when I installed the plugin TinyMCE Advanced and activated the option “Stop removing the <p> and <br /> tags when saving …”.
@dalbeab already answered your question, but thought I would point out a way to add horizontal rule to your editor if you wish. Within functions.php, you can add this: // add horizontal rule button function enable_more_buttons($buttons) { $buttons[] = ‘hr’; return $buttons; } add_filter(‘mce_buttons’, ‘enable_more_buttons’); Then you will have a TinyMCE button that looks like … Read more
You should use wpautop, and in your CSS styles (editor styles + theme styles) make sure that any paragraphs are properly spaced. p { margin-bottom: 20px; } or p + p { margin-top: 20px; }
For any other readers I’d like to add in advance that this only really makes sense if you are kind of creating drafts or templates or whatever you want to call it that will be changed later on. Otherwise you’ll at least deal with SEO penalties due to duplicate content. Unfortunately this functionality isn’t part … Read more
Not sure exactly how you are adding the editor but with wp_editor() the first parameter is the default content. Codex reference: https://codex.wordpress.org/Function_Reference/wp_editor