Can’t give tags rels

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

How to get post body look same as my visual editor?

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

Disabling visual editor on a specific post

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

Overriding post’s font-family

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

Custom styles.css sheet for visual editor

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.

disable tags on wordpress text editor

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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)