TinyMCE is a platform independent web based Javascript HTML WYSIWYG editor control released as Open Source under LGPL. TinyMCE has the ability to convert HTML TEXTAREA fields or other HTML elements to editor instances.

learn more… | top users | synonyms

1
vote
2answers
4k views

How to enable the content editor as a droppable target with jQuery-ui?

I'm trying to enable the WordPress content editor as a droppable using jQuery UI drag and drop. However, I can't get the drag to drop, or the drop event to fire. Is there something I'm missing? ...
1
vote
2answers
856 views

Add TinyMCE to CPT metaboxes in 3.1?

Been looking around for an alternative to this method: http://allcreatives.net/2011/02/02/using-the-native-wordpress-tinymce-wysiwyg-editor-with-your-custom-post-meta-textareas/ To add the WYSIWYG ...
1
vote
1answer
86 views

How to customize TinyMCE4 in WP 3.9 - the old way for styles and formats doesn't work anymore

Before WP 3.9 i had the following two filters applied in the functions.php: function my_mce_buttons_2( $buttons ) { array_unshift( $buttons, 'styleselect' ); return $buttons; } ...
1
vote
1answer
273 views

Is it possible to create nested lists in the WYSIWYG editor?

I'm looking to set up WP for a user that does not know or care about HTML, so I need everything to work in the WYSIWYG editor. She'll be working on posts that have lots of nested bullet lists, but I ...
1
vote
1answer
459 views

How to remove_filter that filters iframes in posts? [duplicate]

Which filter if removed allows iframes to be inserted into wordpress posts?
1
vote
1answer
665 views

Can I remove the Rich Text box editor for a specific post?

A few months ago I asked a similar question: Is it possible to remove the main rich Text box editor? and got the following answer: function remove_pages_editor(){ remove_post_type_support( ...
1
vote
3answers
3k views

WordPress & TinyMCE: Failed to load

As per other posts, I am trying to produce a customised WordPress installation as a CMS for my fishkeeping website. On one of my custom post types (species, which displays information about a given ...
1
vote
2answers
588 views

How do I add a TinyMCE row that all users can see, instead of just admins?

Currently I have successfully added a row of shortcode buttons to the TinyMCE editor in WordPress. The problem is, only admins can see the row, and I need contributors and editors to see it too. I ...
1
vote
1answer
49 views

Remove empty lines ( ) when author updates their post

Whenever adding an empty line between paragraphs using TinyMCE, the   character entity is added. How can I strip the content of all instances of this character whenever an author updates ...
1
vote
1answer
358 views

TinyMCE - Show Advanced Options (2nd Row) By Default

So I've customized my tinyMCE a bit to add some buttons and rearrange some things: function myformatTinyMCE($in) { ...
1
vote
1answer
657 views

Removing unneccessary p-tags (Not every p)

I removed wpautop from my theme: function disable_linebreaks($content) { remove_filter ('the_content','wpautop'); return $content; } add_filter('the_content','disable_linebreaks',1); ...
1
vote
1answer
291 views

tinyMCE duplicates previous block element when pressing return (visual editor)

Going crazy with this. Can't figure out if this is normal behavior. I have added a filter to rewrite image inserts to use <figure> and <figcaption>. Works well. However, when I insert ...
1
vote
1answer
407 views

How to have custom tinyMCE buttons break onto next line when too long

There is probably a really simple solution that I am missing here but I have added multiple custom buttons to the tinyMCE editor in Wordpress and my problem is the row of buttons is too long (they're ...
1
vote
1answer
101 views

How to get line breaks to translate to paragraphs?

How can I get the line breaks that I make in the TinyMCE editor to translate into new lines in the web page. Suddenly all posts when actually previewed on the theme are walls of text. In the final ...
1
vote
2answers
851 views

Second toolbar in tinymce has “display:none” set?

I have a plugin that inserts a tinymce like shown below. Something causes the second toolbar, the theme_advanced_buttons2 to have display:none attached to their style attribute, effectively hiding ...
1
vote
1answer
338 views

Where is the WP auto-save draft JavaScript?

If you write a title, then move away from (blur) that input field, WordPress will auto-save a draft for you, likely in order to create a post slug placeholder for you. I'm looking to possibly extend ...
1
vote
1answer
1k views

the_editor() function

I'm writing a WordPress plug-in that requres user input, so I thought I'd try and use the default WordPress rich-text-editor. Firstly so as not to have to include a text editor in my plug-in when ...
1
vote
1answer
673 views

Adding TinyMCE custom buttons when using teeny_mce_before_init

I'm using the following code to produce a different TinyMCE bar to the default WordPress setup: if (function_exists('wp_tiny_mce')) { add_filter("mce_external_plugins", ...
1
vote
1answer
475 views

Limiting allowed html elements/strip harmful scripts from editor

How can I limit html elements allowed in the tinymce editor in Wordpress 3.1 and ensure harmful scripts have been removed (script/embed tags, etc)
1
vote
2answers
3k views

How do I add a listbox to the TinyMCE editor?

I am having trouble adding a list box to the TinyMCE editor in Wordpress. I have already read entirely through this question but it did not get me all the way there: How i can i add a split button or ...
1
vote
1answer
1k views

When adding buttons to the tinyMCE editor, how do I make them wrap to the next line and/or display in the “Kitchen Sink” area?

I'm successfully adding buttons to the TinyMCE editor in Wordpress, but the problem is they all show up to the right of the Kitchen Sink button and I have so many that I need them to display on a new ...
1
vote
1answer
222 views

Getting a 404 in Debugger for example.com/wp-admin/Array?

For some reason when I go to one of my clients WordPress installations, and I install a plugin that I made which has custom TinyMCE buttons, when they click on one of the buttons the popup appears but ...
1
vote
1answer
2k views

two tinyMCE editors in the same page

I've used this method to enter the first editor: on functions.php: function add_admin_theme_styles() { wp_enqueue_style('thickbox'); } add_action('admin_print_styles', ...
1
vote
1answer
23 views

Fontawesome icon vanishes in editor while switching text and visual mode

While switching between text editor mode or updating post fontawesome icon vanishes.Please do not refer to use any plugin.I think i tag is stripped by editor,how can I overcome this? My code in editor ...
1
vote
1answer
154 views

TinyMCE Keyup Function

I am trying to run a function on Keyup of the TinyMCE Editor on new post and edit post screens. I'm having a hard time catching the keyboard action when a user types something. ...
1
vote
1answer
70 views

Adding html format on tinymce visual editor

Need to add more html format tag to TinyMCE Editor as visualized below Using Wordpress 3.6.1 Can't found any good example/guide for these modification. Another solution welcome. Thanks & ...
1
vote
1answer
104 views

Prevent the Editor From Moving My &nbsp;

I know variations on this have been asked all over the WordPress world, but I can't seem to find what I'm looking for. I have HTML that looks like this: <a ...
1
vote
1answer
757 views

Qtranslate + Woocommerce (multiple tinymce)

I am using WooCommerce and qTranslate to develop an ecommerce website. I run into the following problems. I've googled it and days of trying to no avail. On the top of the product edit pages, the ...
1
vote
1answer
208 views

TinyMCE Advanced list type drop-down

I want to be able to change the list-style-type, for example: list-style-type: circle; list-style-type: square; list-style-type: lower-roman; list-style-type: lower-alpha; ... In the plugin ...
1
vote
4answers
815 views

wordpress 3.5 tinymce height

I've just upgraded wordpress to 3.5 version and I noticed that TinyMCE Advanced Editor is not as tall as before. How can I change default tinyMCE height? UPDATE This is the screenshot of section I ...
1
vote
1answer
504 views

TinyMCE Autoresize

Looking for a way to make the TinyMCE editor always relative to it's content so that the height of the editor changes accordingly to how much text/images it contains. There seem to be plugins for ...
1
vote
2answers
2k views

How to prevent tinymce macro from inserting nbsp;?

I've got the following macro button defined to wrap a selection in a shortcode in the wp_editor visual editor: (function() { tinymce.create('tinymce.plugins.ingredient_name', { init : ...
1
vote
1answer
149 views

Force page to open in html mode

Hi I have a page that always gets messed up when opening in Visual mode, can I force this particular page to always open in HTML mode for all users in the dashboard?
1
vote
1answer
1k views

Add a class to links in the visual editor (how to get old dialog back)

New: Old: In short, i want a list of some classes inside the add link dialog. Because this was default there might be a easy way to get it back like this? Long: I like to have the ability to ...
1
vote
1answer
4k views

How to disable TinyMCE from removing span tags

I am posting Word generated HTML to WordPress via XMLRPC. Before I go to post.php, the format is correctly preserved in the database. TinyMCE performs its magic and I lose quite a few formatting ...
1
vote
1answer
530 views

Shift-Enter in tinyMCE (wp 3.3.1) not working

With wordpress version 3.3.1, shift-enter to insert linebreaks in pages and posts is not working anymore. Has anybody observed this as well? Is there a fix for that? Thanks!
1
vote
1answer
222 views

Rich text editor settings persist throughout all rich text editors

I have an issue I'm trying to better understand in order to force mce to true in the script check below. Background: I'm applying a rich text editor to the category description textarea to allow ...
1
vote
2answers
795 views

How can I enable a TINYMCE rich text editor in the admin interface?

I'd like to add some text above my category archives, and I'd like to use the built-in Wordpress TinyMCE editor to do it. I've seen some plugins like black-studio-tinymce-widget which does a nice job ...
1
vote
1answer
743 views

Disabling TinyMCE keyboard shortcuts altogether

I've disabled pretty much every button in the visual editor, besides bold and underline. The problem is that the functionality of the other buttons are still there with the keyboard shortcuts. Is ...
1
vote
2answers
339 views

create a front end post page template withTinyMCE,

there are alot of front end posting suggestion with wp insert post but is it posible to create a front end post submision with TinyMCE, and similiar editor
1
vote
1answer
247 views

editor text cut off when using 2 spaces (after periods)

I have noticed that my TinyMCE editor in Wordpress MU 2.9.2 loses text after a double space when you save a blog post. This is a problem because some users habitually use two spaces after a period. ...
1
vote
2answers
140 views

How does Wordpress remember which editor is being used?

Hey so I am trying to determine how Wordpress remembers which editor is being used for a particular post (HTML or Visual Editor (tinyMCE)). When you write a post, and then come back, it goes to the ...
1
vote
1answer
419 views

TInyMCE object Tag stripped

I need to add the following object tag to a page <object id="myExperience" class="BrightcoveExperience"> <param name="bgcolor" value="#FFFFFF" /> <param name="width" value="648" ...
1
vote
1answer
500 views

Get current Blog ID in Tinymce Plugin Dialog Window in WPMU

is there any way, to get the current blog id in a Tinymce Dialog Window? Currently I only get the id, from the main blog. This is my current code: $wp_load = "wp-load.php"; ...
1
vote
1answer
747 views

Adding TinyMCE buttons without removing plugin buttons?

I'm developing a plugin that I'll install for all my clients to make WordPress slightly easier to use for them. One of the things it will change is the default TinyMCE configuration. It'll add things ...
1
vote
2answers
840 views

Can't add a class to links in the visual editor since WP 3.1?

Did this feature chang in 3.1? I recall that I could change the class of the link in the thickbox popup.
1
vote
1answer
1k views

How can I troubleshoot why TinyMCE won't load custom plugins in the visual editor?

Edit: Found that the theme options panel set up (using a class) was causing the problem. Still not sure why - would still love know how to find out what the problem is - e.g. is it a JS or PHP issue. ...
1
vote
0answers
7 views

tinyMCE 4.0 custom button onclick no longer working

I am trying to update one of my WordPress plugins where I create a tinyMCE button and open up a thickbox on click. I've just tried switching over to a basic example for testing, and can't get this to ...
1
vote
0answers
13 views

TinyMCE strips breaks inside editor

the posts are shown correctly in the frontend. But when i go to edit, the content inside tinyMCE is without breaks ?! So i have to copy my content from frontend and paste it to the editor every time i ...
1
vote
1answer
175 views

Our shortcode dropdown box in Tinymce is not working in WordPress 3.9?

Hi since the new version is about to be released I thought I would download it and see if my theme works still. Everything works great apart from the dropdown box which is now longer showing. Here ...