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
0answers
96 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
306 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
147 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
214 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
102 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
35 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
101 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
72 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
67 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 ...
1
vote
0answers
110 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
44 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
193 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
91 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 ...
3
votes
1answer
901 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
3answers
350 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 ...
8
votes
1answer
6k 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
104 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
164 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
160 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
89 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
157 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
568 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
171 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
262 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
8k 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
354 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
317 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
108 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
54 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
3k 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 ...
8
votes
2answers
2k 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
2k 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
98 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
217 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
238 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
0answers
213 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
162 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
204 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
163 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 ...
0
votes
0answers
15 views

Passing settings to multiple WYSIWYG editors [duplicate]

I am trying to create multiple wysiwyg editors on the same page using a loop. I am trying to pass settings to each editor to change their look of them. I'm not sure what I am doing wrong. I am ...
0
votes
0answers
204 views

Why if i enqueue the tinymce script i get undefined error

<?php /* Plugin Name: random plug Plugin URI: http://example.com/wordpress-plugins/my-plugin Description: A plugin demonstrating Cron in WordPress Version: 1.0 Author: Brad Williams Author URI: ...
0
votes
0answers
46 views

Why are <a> Tags “Slipping” in TinyMCE / Page Builder editor?

I'm trying to figure out why this might possibly be happening: Basically I have a section of code with an tag, like so: <a>Word here</a> After entering that into the TinyMCE editor ...
0
votes
0answers
122 views

Customize TinyMCE Buttons

I've always used the plugin TinyMCE Advance that lets me drag and drop which buttons I want to show in the Editor. Now I'm trying to set those using my functions.php instead. That way I never have to ...
0
votes
0answers
104 views

wp-editor-area textarea disapear on cancel-comment-reply-link click

I am using this tutorial to implent the wp_editor in comments. everything went fine except when i click on cancel-comment-reply-link. the form move on to its initial position on the bottom of ...
0
votes
0answers
165 views

Adding new tab to WordPress editor next to visual and text tab

Hi, The topic title says it all, I want to add another tab next to visual and text tab. So far I found this topic here: Add new tab next to Visual and Html in wordpress text editor? and this New ...
0
votes
0answers
136 views

How to Insert Popup box shortcode in wordpress

I create a Tinymce Popup box for inserting shortcode on content area in wordpress. When I click shortcode button then popup box open successfully with input field. But when I click popup box insert ...
0
votes
0answers
28 views

hide tinymce error from the front end

I have created a tinymce button with the help of this action hook add_action( "admin_init", array( &$this, "sample_button" ) ); public function sample_button(){ if( ...
0
votes
0answers
65 views

TinyMCE Add media and fullscreen buttons not working

I am using twentytwelve theme and I have a custom form where I am using TinyMCE for the content with the following code provided by wordpress: wp_editor( $content, $editor_id ); The buttons for ...
0
votes
0answers
108 views

Insert Gallery Doesn't insert shortcode

I have a custom posttype where for some reason the "Insert Gallery" button generates an javascript error Uncaught Error: Syntax error, unrecognized expression: [gallery ids="113,111"] ...