I am trying to add a custom WordPress editor field to the General Settings page in the admin. I have it working except that when you save anything with...
I would very much like to disable the drag and drop upload feature for tinyMCE (both the default one and the wp_editor() one) because it interacts with my custom...
Why WP Editor also strips the “placeholder” attribute of the input text element ? Ofcourse, i am using the HTML mode. Here is the input: <input type="text" value="" name="s"...
I am adding tinymce edior with new wp_editor() function on theme option page. On submit the theme option sends data to option.php where it saves. But tinymce doesn’t seem...
I’m using the following code to produce a wp_editor instance: <?php if (version_compare($wp_version, "3.3") >= 0) { ?> <p><?php wp_editor( $answer->post_content, 'answer', array( 'media_buttons' => true, 'wpautop' => true...
I’m creating a custom plugin. One of the fields in the plugin let’s the user add data. If I add a textarea the user has no control over the...
I’m trying to set shortcode attribute value to ' " (single and double quote) by using escaped values ' ". Example: [shortcode attr="' ""]test[/shortcode] As soon as I switch...
I know it’s easy to disable WordPress from adding both p and br tags with: remove_filter( 'the_content', 'wpautop' ); remove_filter( 'the_excerpt', 'wpautop' ); but I want WordPress to keep...
This is default wordpress add_editor_style function: function add_editor_style( $stylesheet="editor-style.css" ) { add_theme_support( 'editor-style' ); if ( ! is_admin() ) return; global $editor_styles; $editor_styles = (array) $editor_styles; $stylesheet = (array)...
How can I apply my own css (to match editor-style.css) to wp_editor being used on the front end for comments? Currently I’m using code from here to enable the...