How to display TinyMCE HTML view?

After analyzing sources of /wp-admin/ I realized that TinyMCE HTML view is just another textarea… Anyways, here’s the answer (everything works like a charm excepting the “img” button, but you can hide it easily with CSS – #ed_img {display: none} ). <div id=”postdivrich” class=”postarea”> <div id=”editor-toolbar”> <script type=”text/javascript” src=”http://localhost/wordpress/wp-includes/js/quicktags.js?ver=20110502″></script> <script type=”text/javascript”>edToolbar()</script> </div> <div id=’editorcontainer’> <textarea … Read more

TinyMCE doesn’t work correctly in the Media Modal Window

i had the same “problem” just two days ago. Finally it worked somehow but wasn’t reliable at all. Switching editors just didn’t work occasionally and as said, wasn’t a reliable solution. The only reason to use tinyMCE here was the ability to add links to attachments. I took an other route and came to this … Read more

How to make image in TinyMCE clickable

To your primary question: It’s a tinymce plugin and can be found here: wp-includes/js/tinymce/plugins/wpeditimage/ I’m not sure but I guess you would have to rewrite some code if you want to use it with a non-wp instance of tinymce. Never tried it, but I’m pretty sure it will not work out of the box. Second … Read more

TinyMCE – Insert media at the beginning of post

If your goal is to get a photo at the top of every post, I’d encourage you to use the featured image instead. It can be added to any post type with add_theme_support(): // add featured image to Page post type add_theme_support( ‘post-thumbnails’, array( ‘page’ ) ); Then the user can upload an image to … Read more

How to disable tinyMCE button added by a plugin?

I’ve found that you can manual set availability button by this attribute theme_advanced_buttons1 (for button in row 1) Example : function disable_mce_buttons( $opt ) { //set button that will be show in row 1 $opt[‘theme_advanced_buttons1’] = ‘bold,italic,strikethrough,|,bullist,numlist,blockquote,|,justifyleft,justifycenter,justifyright,|,link,unlink,wp_more,|,spellchecker,wp_fullscreen,wp_adv,separator’; return $opt; } add_filter(‘tiny_mce_before_init’, ‘disable_mce_buttons’);

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