Tag Info

New answers tagged

-1

I had a similar problem while I was trying to use ToncyMCE 4 in internet explorer 8 "IE=8"(yes an old version for the sake of an old version of dojo being using in the same project and I don't have time to update it : ) ). I had multiple TinyMCE editors in my page , teh firts was working very well but I couldn't add text in the next editors. I found that ...


1

The second parameter to wp_editor is the value that the "id" attribute of the textarea element will have, and that is probably why there are such restrictions on it. By default it is also used for the "name" attribute but you can set it explicitly by using the $settings parameter to wp_editor wp_editor($ID, 'media_desc_n',array('textarea_name' => ...


0

Hey If you want to improving your text editor for post and pages then use Gust Wordpress Plugin Gust I think you like it.


2

You can register TinyMCE plugins using mce_external_plugins filter: add_filter('mce_external_plugins', 'my_tinymce_plugins'); function my_tinymce_plugins() { $plugins_array = array( 'my-tinymce-plugin-name' => 'tinymce-plugin-url-of-js-file' ); return $plugins_array; } You can add that code to ...


4

The HTML for the inserted internal links are generated by Javascript, so I'm not aware of any easy way to change it. The HTML generation is controlled from the wpLink.htmlUpdate method (HTML mode) and the wpLink.mceUpdate method (TinyMCE mode), in the /wp-includes/js/wplink.js file. Here are some ideas: Add a query parameter to the inserted links: We ...


1

The solution was to use the fullpage plugin. See: http://www.tinymce.com/wiki.php/Plugin3x:fullpage


0

And here's how you would remove an array of post types from the edit link dialog: function removeCustomPostTypesFromTinyMCELinkBuilder($query){ $key = false; $cpt_to_remove = array( 'cpt_one', 'cpt_two', 'cpt_three' ); foreach ($cpt_to_remove as $custom_post_type) { $key = array_search($custom_post_type, ...


0

Try this function from leighton.com : function override_mce_options($initArray) { $opts = '*[*]'; $initArray['valid_elements'] = $opts; $initArray['extended_valid_elements'] = $opts; return $initArray; } add_filter('tiny_mce_before_init', 'override_mce_options'); Hope that helps.


2

I was able to resolve both defaulting to the Visual editor and hiding the tabs with the following code. Dumped the following in plugin file: add_filter( 'wp_default_editor', array($this, 'default_editor') ); Hide the tabs with this javascript: $('.wp-editor-tabs').remove(); Or hide it with CSS: .wp-editor-tabs{display:none;}


0

This might guide you in the right direction: http://codex.wordpress.org/TinyMCE_Custom_Buttons Specifically the part of adding your own buttons. Since there should be hooks you can probably get away with just modifying the filters tinymce already has. Adding Custom CSS Styles to MCE Editor A common use-case for custom TinyMCE plugins is the need ...



Top 50 recent answers are included