Articles of wysiwyg

How to paste into WordPress editor without changing existing formatting in editor?

When you paste text into the default WP editor, say, right into the middle of existing text, the editor does not infer that you want to maintain the existing font-size and style in the document. Instead, it uses the font styles from wherever the text was copied from. And you have to type the text […]

How to add custom page elements to the WYSIWYG editor?

On a plugin-less Worpress installation the WYSIWYG editor allows to write a page down from top to bottom with style buttons (lists, font, italics, bold, add picture …). What I am missing is the possibility to define custom page elements. Example: a button next to “Add picture” that is labeled “Add box” and does, well, […]

remove initial wysiwyg editor from cms page edit

So I have successfully installed and implemented the Advanced Custom Fields plugin from: I have applied a set of custom fields to a custom page template, successfully. What Im trying to do now is remove the initial text input field from the page, but I haven’t a clue where to start, here is what […]

How to manage heading font options located in the wysiwyg editor for posts and pages

Within WordPress 4.6.1, when I go to edit a post, from the WYSIWYG editor, there is a drop-down option to apply multiple heading formats to the given text. What is the WordPress way for developers to customize these heading options so that we can adjust the font size, color and font-family, for any one of […]

TinyMCE not loading in IE8

Yes I know it’s 2016 and IE8 is older that my grandma but I have to support it for specific reasons. My TinyMCE is not loading, it is version 4.4.1 in WordPress 4.6.1 and when loading the Add new post screen in IE8 I get Could not set the href property. Invalid property value in […]

How to add custom tinymce plugin to new text widget

So I have a custom TinyMCE plugin, which adds a button to the editor. I’m using the mce_external_plugins and mce_buttons filter to add my TinyMCE plugin. After WP 4.8 introduced the simple TinyMCE for the new text widget i would like to include my button i that editor as well. For some reason i can’t […]

Theme Advanced Styles in Visual Editor and Paragraphs

After i add these codes to functions.php: add_editor_style(); function childtheme_mce_btns2($orig) { return array(‘formatselect’,’styleselect’, ‘underline’, ‘justifyfull’, ‘forecolor’, ‘|’, ‘pastetext’, ‘pasteword’, ‘removeformat’, ‘|’, ‘media’, ‘charmap’, ‘|’, ‘outdent’, ‘indent’, ‘|’, ‘undo’, ‘redo’, ‘wp_help’ ); } add_filter( ‘mce_buttons_2’, ‘childtheme_mce_btns2’, 999 ); function childtheme_tiny_mce_before_init( $init_array ) { $init_array[‘theme_advanced_styles’] = “box note=box_note;box info=box_info;box warning=box_warning;box download=box_download”; return $init_array; } add_filter( ‘tiny_mce_before_init’, ‘childtheme_tiny_mce_before_init’ […]

WordPress's “Text” Format

When using self-hosted WordPress, you have the option of writing in “Visual” or “Text” mode. Assuming there’s no plugins installed, Is this “Text” format a well defined standard or pseudo standard? (like markdown, textile, etc.) Is there a single place in a plugin-less 3.5.1 WordPress where this text is converted into HTML? If the answer […]

Move Title and the Content WYSIWYG editor position

Right now, the Title is the first thing at the top of the page, then we have next the WYSIWYG Editor. I would like to add a Custom Meta Box and insert it before the title or WYSIWYG editor. How can I move them around?

data-accordion removed in Visual Editor

Using Foundation 5’s accordion, and the data-accordion html data attribute in: <dl class=”accordion” data-accordion> gets removed when a user only edits a page with the Visual Editor. Does anyone know of a way to keep this from happening? I noticed this link that allows you to Register Additional HTML Attributes for TinyMCE and WP KSES, […]