wordpress 3.5 tinymce height

@frabiacca: I’m not sure if you meant the toolbar menu, like Circle B showed or the height of the writing place. If it’s the latter you can : do it easily by gragging the bottom right corner or the textarea or clicking on the fullscreen button of the editor 😀 do it programmatically codex.wordpress.org/TinyMCE function … Read more

Insert text a cursor position in to TinyMCE text editor

To test this, I’ve added a button to one of the other meta boxes on the post edit/new screen, with an id of addtxtbtn. On click, I grabbed the textareas inside the #wp-content-editor-container, which is the default wrapper for the default WP Editor instance. You might need to alter this, if you got different MarkUp. … Read more

TinyMCE Keyup Function

// get tinymce instance of wp default editor var ed = tinyMCE.getInstanceById(‘content’); // add a callback to tinyMCE.onKeyUp event ed.onKeyUp.add(function(){ // format: text will strip html tags console.log( ed.getContent({ format: ‘text’ }) ).length; }) http://www.tinymce.com/wiki.php/api3:event.tinymce.editor.onkeyup

Should the WP post editor B (bold) button be inserting a tag instead of in HTML5?

Here’s what I came up with. So far it doesn’t seem to have broken anything: add_filter(‘tiny_mce_before_init’, ‘modify_formats’); function modify_formats($settings){ $formats = array( ‘bold’ => array(‘inline’ => ‘b’), ‘italic’ => array(‘inline’ => ‘i’) ); $settings[‘formats’] = json_encode( $formats ); return $settings; } One could easily have used plus a class here, but given the changes in … Read more

How do i disable/disallow and tags in TinyMCE?

Simple way, do not add content when logged in as admin user but only as author. If you want to go to somewhat extreme, remove the posting capabilities from the admin. Not sure where that will leave you with editing slugs so a proper check of permission will be needed. This answers your question as … Read more

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