Tag Info

Hot answers tagged

2

This might be a limitation of JavaScript. 𪇆 is U+2A1C6 in Unicode, and codepoints above U+FFFF (which need four bytes) are coded via UTF-16 surrogates. And that … sucks. The canonical bug for that in WordPress is #13590 Inserting a 4-byte UTF-8 character truncates data. It was closed as maybe later, because fixing it would require a change in the database ...


1

You can use add_editor_style() to override the default styles with your custom ones. Like this: function wpse158918_override_default_tinymce_styles() { add_editor_style( 'your-editor-styles.css' ); add_action( 'after_setup_theme', 'wpse158918_override_default_tinymce_styles' ); The code would go into your functions.php, the path to the stylesheet is ...


1

The "Text" editor is not an HTML editor. If you want to be able to edit raw HTML you will need to use some other editor, but that will probably limit your ability to use the visual editor for the content edited with it. The plugin you mentioned seems like good compromise. The other alternative is to write your own shortcodes for whatever you need to be done. ...


1

You need to use wp_editor() $old_description = get_post_meta($post->ID, 'sdm_description', true); $editor_id = 'sdm_description'; $settings = array( 'media_buttons' => false ); wp_editor( $old_description , $editor_id, $settings );


1

As mentioned in the comments, this is a lack of wp_autop() and other formatting functions that get applied to the the_content filter. The editor does not save <p> tags at all, but later on line-breaks are converted into paragraphs via wp_autop(). For meta content, I like to recreate the default filters. I do this because some plugins add things via ...


1

I had the exact same problem and found the solution to this. The problem is that the anchor plugin for TinyMCE is not being included as part of the default Wordpress install. So while Wordpress says to include: $buttons[] = 'anchor'; …that's not going to work because the TinyMCE plugin for anchors isn't there. If you go to TinyMCE's website, you can ...



Only top voted, non community-wiki answers of a minimum length are eligible