How to remove some options in visual editor?
Try this plugin. It allows you to add/remove buttons on the visual editor -> http://wordpress.org/extend/plugins/tinymce-advanced/
Try this plugin. It allows you to add/remove buttons on the visual editor -> http://wordpress.org/extend/plugins/tinymce-advanced/
function extend_tinymce( $values ) { $elements=”pre[id|class|title|rel]”; if ( isset( $values[‘extended_valid_elements’] ) ) { $values[‘extended_valid_elements’] .= ‘,’ . $elements; } else { $values[‘extended_valid_elements’] = $elements; } return $values; } add_filter(‘tiny_mce_before_init’, ‘extend_tinymce’); The above snippet is what I use for example, of course you can extend this beyond id, class, title, rel, to things such as height, … Read more
Your jQuery code is using the $ symbol without accounting for noConflict mode. More information: http://codex.wordpress.org/Function_Reference/wp_enqueue_script#jQuery_noConflict_Wrappers
Dashboard>>Users>>Edit User: is “Disable the visual editor when writing” ticked?
the editor uses its own stylesheet which might be quite different from the one on your theme. If you are willing to dig into the code it would make sense to make a stylesheet for the editor. See this for details http://codex.wordpress.org/Function_Reference/add_editor_style
I’ve tested the code you provided both WITH and WITHOUT the WP Editor plugin enabled and the “Visual” tab is suppressed in both cases. This means the user is forced into “Text” mode on post 416. To address your second request, I’ve modified the code to allow you to supply a list of posts that … Read more
You could run a regex. Since they’re continuing this behavior, you will probably want to create a custom plugin and set up a cron job to trigger it periodically so it will continue stripping all inline styles. Your plugin will need to query all posts. From there, in a loop that checks each post’s content, … Read more
You don’t have to specify a file for the editor style. Just use add_editor_style(); in your functions.php, and then create a file called editor-style.css in your theme folder. You may want to look at some examples (e.g. Twenty Eleven) for some of the TinyMCE-specific rules, which is the stock visual editor you’re referring to.
WordPress already disallows the use of JavaScript in the editor for users without the unfiltered_html capability. By default, only the Administrator and Editor roles have this capability. If necessary, you could remove this capability from Editor users as well. (It doesn’t make sense to remove it from Administrators, because they will still have the ability … Read more
The meta box order gets stored in the user meta and is basically an array of “priority” and meta box id. I didn’t check if this meta key gets generated upon user setup or when the first manual reordering occurs. To see how this array looks, and how the native WP metaboxes IDs on a … Read more