Tag Info

Hot answers tagged

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 ...


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 ...


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


1

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


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' => ...



Only top voted, non community-wiki answers of a minimum length are eligible