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

0
votes
2answers
84 views

Remove 'Visual' tab from TinyMCE editor

I would like to disable the 'Visual' tab so that the 'Text' tab is always used. Is there a clean way to do this besides just doing something like .wp-switch-editor { display:none!important; }
0
votes
0answers
124 views

Edit body image after insertion in 3.9.1

Pre 3.9.1 when I hovered over an image in the post body I was presented with 2 buttons top left of the image. One allowed me to edit the image (size, alt, title tags etc). This has disseapred now and ...
0
votes
1answer
57 views

Customizing tinyMCE 4 Styles and Format dropdowns

As has been pointed out in multiple posts here there are some big problems with tinyMCE 4 formatting for WP 3.9 - this code comes very close: TinyMCE: adding CSS to format dropdown But there are ...
0
votes
1answer
76 views

Save WYSIWYG editor plugin settings, only works after second save

I have set up a WYSIWYG editor on one of my plugin settings pages. The content saves, but only after you hit save twice. If you hit it once, you get he message for settings saved, but the content ...
0
votes
1answer
294 views

TypeError: window.tinyMCE.execInstanceCommand is not a function

I can't add any shortcode in my wordpress editor. it shows - TypeError: window.tinyMCE.execInstanceCommand is not a function window.tinyMCE.execInstanceCommand(id, 'mceInsertContent', false, ...
2
votes
1answer
249 views

Unable to add “code” button to TinyMCE toolbar

This is driving me crazy. Using code from the WP codex, I can add SOME buttons to the TinyMCE bar, but NOT others. For example this code: function my_mce_buttons_2($buttons) { /** * Add ...
6
votes
1answer
152 views

Any alternate TinyMCE4 themes / subthemes?

TinyMCE4 in WordPress 3.9 has some cool changes, but it seems to have only one "theme" included. Is there any way to make a sub-theme of the theme defined by CSS, and theme.js in ...
0
votes
0answers
55 views

wp_editor in thickbox

I am updating a shortcode generator that I made before and I want to add in addition to text areas inputs etc.. a tinymce editor, so I call wp_editor in the ajax content of the thickbox, the editor ...
1
vote
1answer
178 views

TinyMCE style_select - Append Classes

TL;DR Question How do I create a submenu for my classes with style_format? Can I append a submenu to the existing menu? With the new Styleselect in TinyMCE 4.0 there's a bunch of predefined ...
0
votes
0answers
109 views

Allowing style tag in TinyMCE editor

In cases i want to add individual styles for an element its easy i just add inline styles inside p tags, because _wp_add_global_attributes has style attribute.... but when i want to add tag itslef ...
0
votes
0answers
101 views

How include the “text/visual” tabs in your own wp_editor instance?

I've made some meta boxes which use the wp_editor to create the textareas. When someone is on any page in the admin interface and moves from "visual" tab to "text" tab, all my wp_editor boxes show ...
0
votes
0answers
90 views

TinyMCE tablecontrols missing after 3.9 upgrade - TinyMCE4

I wrote a simple Tables plugin for TinyMCE 4 (WP 3.9) and can't seem to find a way to enable table controls for TinyMCE. function table_plugin_button($buttons) { array_push($buttons, "table", ...
0
votes
0answers
33 views

Localize tinymce in WordPress 3.9?

Still stucked with this localization of tinymce. Find this resource here : codex. Does not seem to work anymore. How do you do this? Any help would be much appreciated.
0
votes
1answer
65 views

WP Editor: Keep Bold, Underline, etc. but ignore color

Since upgrading to WP 3.9, my clients have been complaining that the new editor keeps too much formatting. They'd like it so when you paste it keeps the formatting of bold, underline, paragraph ...
0
votes
0answers
62 views

How can you use a TinyMCE 3x function in WordPress 3.9

I want to use tinymce 3x width function createControl in wordpress 3.9. How can I achieve this ? createControl: function(n, cm){ return null; }
0
votes
1answer
36 views

TinyMCE strips content while pasting. Possibly a bug

I have a shortcode that has a 'style' attribute for a theme that I'm creating, which looks like this: [shortcode_name type="normal" style="fixed"] Now if I paste this in the TinyMCE editor, I get ...
0
votes
0answers
93 views

Styles missing from TinyMCE Advanced 4.0.1 & WP3.9

I recently updated to Wordpress 3.9 and TinyMCE Advanced 4.0.1 It looks like any of the custom styles that used to be in the "styles" dropdown is no longer showing up. Things I've tried: - ...
0
votes
2answers
183 views

Tiny MCE POPUP Problem in wordpress 3.9

Tiny MCE popup is not working in wordpress 3.9, I searched a lot but can't find a good solution on internet. One of my plugin is not working properly with this issue. I tried to replace the files for ...
1
vote
0answers
70 views

How to customize the “Insert/edit link” popup box?

is there a way to customize the "Insert/edit link" popup box in the editor so that it does something like this: Have a checkbox that says "Insert affiliate tag at the end of link" If the checkbox is ...
2
votes
1answer
38 views

Listbox return wrong value in WordPress 3.9

I have already created listbox for WordPress 3.8 but it's not working in new version WordPress 3.9. So I write the JavaScript code: (function() { var ICONS; var icon = function(id) { return ...
0
votes
1answer
145 views

TinyMCE 4 & wp_editor multiple editor issue

Just updated WordPress to new 3.9, new features are great, love them. Only got some issues with tinyMCE 4. I use wp_editor to create multiple tinyMCE editors with custom field. Here is the code: ...
0
votes
1answer
72 views

WordPress (TinyMCE) not removing script tags

We have an installation of WordPress (3.9) where TinyMCE is not removing script tags (in posts etc). This isn't correct, I believe?! I think a developer that worked on the project possibly changed ...
0
votes
1answer
402 views

TinyMCE 4.x : How to customize toolbar on wp_editor()

Since upgrading to Wordpress 3.9 (which includes TinyMCE 4.x), I have problems customizing the editor, displayed via wp_editor() In the example below, I want to disable the 'fullscreen' button, but ...
5
votes
1answer
240 views

WP 3.9 TinyMCE no longer loads on category description editor

I've used this script below inside functions.php since WP 3.5 It converts the standard category description editor to a rich text editor. Unfortunately, after upgrading sites to WP 3.9, the ...
5
votes
1answer
4k 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
0answers
70 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 ...
0
votes
0answers
125 views

Wordpress editor strips out anchor tags when they appear on their own line

In the text below, when I toggle the WYSIWYG view from Visual to Text, the anchors are left intact. However, when I switch back to Visual, the anchors are replaced with   elements. This is ...
0
votes
1answer
84 views

Add button in TinyMCE editor to insert text

I'm searching a way to add a custom button to the TinyMCE editor when clicked insert into the visual editor some text. For example: button called "Hi" when clicked insert into the editor "Hello I'm ...
1
vote
0answers
65 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 ...
2
votes
0answers
120 views

wp_editor on input changes content

I have a text area using wp_editor On first input it works great. Save via text or visual it saves to mysql just fine this is what is in the text area before I save <a ...
2
votes
1answer
403 views

White text on white background in TinyMCE when wp_editor is called in WP 3.9

One of the features of my plugin is to add a TinyMCE editor instance inside a meta box on the Edit Post screen. This has worked great up until 3.9, and I'm not clear as to what's going wrong. Here ...
1
vote
1answer
118 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
1k 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 ...
1
vote
2answers
226 views

Hide TinyMCE controls in TinyMCE 4 (Wordpress 3.9)

Trying to figure out how to hide TinyMCE Controls (forcolor mainly) in WordPress 3.9 beta 2. The code that was working in 3.8.1 was $init['theme_advanced_disable'] = 'forecolor'; but ...
10
votes
2answers
6k views

Add custom TinyMCE 4 Button, Usable since WordPress 3.9-beta1

How is it possible to add a custom button to the visual editor TinyMCE, Version 4? Currently I found this q&a with a little bit hints to the topic, but not a solution or a how to. But I can't ...
0
votes
1answer
249 views

Adding CSS to admin TinyMCE editor for custom button

I have created a plugin that adds a new button to the TinyMCE editor in the admin edit pages/posts area. I am trying to apply a font icon to it as per the the other buttons in Wordpress 3.8. I have ...
1
vote
0answers
257 views

How to add Listbox / Select dropdown for shortcodes in WP 3.9 beta2 using TinyMCE?

I need a list-box for shortcodes in visual editor. With WP 3.8 I got it working like : createControl : function(n, cm) { switch (n) { case 'example': var mlb ...
0
votes
1answer
96 views

TinyMCE 4.0: specifying buttons to display [duplicate]

Maybe I'm just clueless, but in looking through the documentation for TinyMCE 4.0 I can't seem to find information how how to specify which editor buttons to display. The theme_advanced_buttons[n] ...
0
votes
0answers
50 views

What is zinging my HTML commands? I don't think I can blame TinyMCE this time…

I'm creating some pretty involved websites where I insert the contents of a wordpress 'page' directly into a page display element. (example would be a custom entry in the footer...) Its absolutely ...
2
votes
2answers
2k views

How to use the new Dashicons for custom TinyMCE buttons?

I've been following a tutorial on Tuts+ (linked from the WordPress Codex) on how to interact with the TinyMCE editor to add buttons. Following the example code on that article, I have a JS file which ...
7
votes
2answers
1k views

WordPress 3.9 - Trouble Editing new TinyMCE

With WordPress 3.9 coming soon it's bringing along TinyMCE 4.0. I'm running my plugins and functions through some testing and found that one of my functions seems broken / not working with the new ...
1
vote
1answer
621 views

Remove empty lines (&nbsp;) when author updates their post

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

Using TinyMCE in plugin?

I've successfully integrated DataTables Editor into WordPress as its own plugin. It loads successfully and I can edit a DataTables' table. What I'm trying to figure out is how to utilize WordPress' ...
0
votes
1answer
145 views

WordPress WYSIWYG editor on demand, responsive

I have created a WYSIWYG editor inside of a metabox, and I have loaded it on demand via javasacript. But the WYSIWYG is not responsive, like the default one is. How can I make it responsive? It sits ...
0
votes
1answer
160 views

How to add class to an html output element in tinyMCE paragraph drop down menu

I tried to modify the TinyMCE behaviour in the functions.php. I try to accomplish that e.g. h4 gets a class of "headliner" per default. I am half way there. I found a setting to create a drop down ...
0
votes
2answers
221 views

How to disable wp content editor while using qtranslate for custom post types in wp-admin

Is it possible to remove the editor completely for some CPTs? If you remove the editor support for the CPT, qtranslate does not init for the title field. So, if you want to use it, you should get ...
0
votes
0answers
153 views

TinyMCE onkeyup in front end

I have post content field in the front end created using wp_editor function. I tested script which uses onkeyup in back end and it works fine. .js file: jQuery( document ).ready( function( $ ) ...
0
votes
1answer
124 views

Localize variables with TinyMCE script

I am writing a plugin that has variables that I would like to localize for use within TinyMCE. The logical choice seemed to me to localise them with the enqueued TinyMCE script itself like so: public ...
0
votes
1answer
131 views

Sortable WYSIWYG editor

I have a bunch of wysiwyg editors in a metabox that are sortable. Unfortunately whenever I drag a row around I get this error, and I have no idea what is causing it. Uncaught TypeError: Object ...
0
votes
0answers
125 views

TinyMCE in ajax modal window

I'm trying to use TinyMCE editor in fancybox ajax loaded (lightbox like modal window). I have managed to load it but i can't type in it and Text tab there are no quicktags buttons.. It respond on ...