Resizing the wordpress editor

Instead of resizing the editor, resize the internal representation inside the TinyMCE instance so the content itself never passes the line. This way the editor can eb any width and the content will never be wider than it’s intended to Start by adding the editor style in functions.php function my_theme_add_editor_styles() { add_editor_style( ‘custom-editor-style.css’ ); } … Read more

Editor background colour in full screen

This kind of problems are solved using Chrome Inspector or Firefox Firebug. Inspecting the element, we get the necessary ID’s or Classes to add in the stylesheet. So, .mceContentBody.wp-fullscreen-editor is the one we need to address in the theme file editor-style.css: .mceContentBody.wp-editor, .mceContentBody.wp-fullscreen-editor { background-color: #000; color: #fff; }

How can I determine what mode the editor is in and when it changes?

To determine what mode the editor is currently in, you can use the getUserSetting(‘editor’) in JavaScript, which returns either “html” or “tinymce”. To determine when the editor mode is switched, you can use the jQuery click event handler on the #content-tmce and #content-html elements, which are the editor type switching buttons: jQuery( ‘#content-tmce’ ).click( function() … Read more

Make Textarea a TinyMCE (editor box)

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 );

Add table button in editor without Plugin

i use this custom button for ad’s in TinyMCE, i use JavaScript code to add/develop this one look into this code: jQuery(document).ready(function ($) { tinymce.create(‘tinymce.plugins.wpse72394_plugin’, { init: function (ed, url) { // Register command for when button is clicked ed.addCommand(‘wpse72394_insert_shortcode’, function () { selected = tinyMCE.activeEditor.selection.getContent(); if (selected) { //If text is selected when button … Read more

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