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
0answers
9 views

tinymce modal and I18n strings methods

Im working on a plugin that loads a tinyMCE modal. As many who know this normally involves opening a static html or even php file. The problem I've run into, is that I would like to translate using ...
0
votes
0answers
13 views

tinyMCE is not defined with specific plugin [on hold]

I'm using a plugin called Showbiz Slider and after editing a slide I cannot save it. While clicking the save button I see that there is an error Uncaught ReferenceError: tinyMCE is not defined I've ...
0
votes
0answers
22 views

Show Custom Post id in shortcode button on tinymice editor

I have created a custom post Testimonial for my custom theme and i have to display posts using shortcode , i want a shortcode button on tinymice editor so i create a js file for shortcode button Here ...
0
votes
0answers
15 views

TinyMCE Add Media drag and drop

I am trying to use TinyMCE editor in custom page in wp admin "Settings" area. I am able to load it using wp_editor() with drag_drop_upload and media_buttons enabled. It loaded well. But the problem is ...
0
votes
1answer
30 views

Preserve shortcode content formatting

How can I preserve the formatting of the content within a shortcode block when I switch back and forth between the visual and text editor in TinyMCE? As in, the stuff between [myshortcode] and ...
0
votes
0answers
27 views

Remove are you sure dialog from editor

I'm trying to stop the "Are you sure" dialog from appearing on a custom post type. I've tried the suggestions over on this question and this one but they are two and three years old respectively so ...
0
votes
0answers
16 views

How can I enable Visual and Text tabs in a front end implementation of TinyMCE?

I have a plugin that uses TinyMCE for front end entry of content by users. However, the Text / Visual tabs are not available, and I'm not sure how to make them available. Here is the code from the ...
0
votes
0answers
15 views

Custom buttons (with icon) disappearing if saved in TinyMCE visual mode

I'm using custon social buttons in the latest version of Wordpress. The buttons are based on Bootstrap 3 with Font-Awesome icons. The code for the buttons with icons looks like this: <button ...
0
votes
0answers
8 views

Custom admin TinyMCE - order items

I would like to know, how can we order wordpress editor buttons? I want to add the "format/style" dropdown after the heading dropdown. Here is my code: function enable_style_dropdown($buttons) { ...
1
vote
1answer
49 views

More than one TinyMCE (wp_editor) with different $settings['drag_drop_upload'] values breaks

It appears that when I have two+ separate wp_editors with different values for drag_drop_upload they all are built as if they have drag_drop_upload set to true. If I set them all to false they act ...
0
votes
0answers
19 views

mqTranslate removes empty paragraphs / line breaks when updating post

I am using WordPress 3.9.1 with TinyMCE 4 by default, and so far I had no problems with formatting. However, I have now installed mqTranslate and whenever I update a post, all the empty paragraphs or ...
1
vote
1answer
25 views

P̶l̶a̶c̶e̶h̶o̶l̶d̶e̶r̶ *Default* content in Custom Post Type TinyMCE editor

I know you can customize the placeholder default text of the 'Post Title' field, but is there any way to display placeholder content in the actual TinyMCE post editor? Ideally I'd like to display ...
0
votes
1answer
52 views

How do i use fontawesome icons in TinyMce editor?

I'm trying to add a youtube button in TinyMce editor. here is a recent-posts.js file which is in the js folder of the theme directory. (function() { tinymce.create('tinymce.plugins.buttons', { ...
0
votes
0answers
21 views

How to add tinymce to normal textareas (in wordpress admin)?

I have custom post type called coupon and custom taxanomy stores. At this page edit-tags.php?taxonomy=stores&post_type=coupon meaning while adding and editing stores I have a field called ...
1
vote
1answer
79 views

How to get a jQuery script to run on a page?

I am having a hard time figuring out how to get a jQuery script to run on a Wordpress page of mine the "correct" way. I have followed this article and implemented what the first answer says to do. ...
1
vote
2answers
44 views

Adding custom styles to elements, without creating new elements

So Im using the tiny_mce_before_init filter to added a few classes to the wp_editor and am getting unexpected results. I havent used this before, but from what Im reading and what my peers tell me I ...
0
votes
1answer
60 views

Add php function into .js file (for tinyMCE button)

I am creating a tinyMCE button for the wp WYSIWYG editor. Basically what happens is when a use clicks on the button a modal form pops up and they have to enter a few fields. However One of the fields ...
0
votes
0answers
56 views

wp_editor() in content that was loaded with ajax

I try to use wp_editor() in content that was loaded with ajax, but none of the required files and some other configuration script not loaded : The structure of ajax is something like this: function ...
1
vote
0answers
48 views

Add tinymce buttons to caption textarea in media uploader

I want to add some basic tinymce buttons ( Bold, italic, underline ) to caption textarea in media uploader in WordPress. (Shown in attached image) I dig a little bit into wordpress core in media.php ...
0
votes
1answer
55 views

WPAlchemy - Multiple TinyMCE editor blank (can't add text)

Setup a basic WPAlchemy repeater field with a TinyMCE textbox inside. If repeated I am unable to select the new textbox and add text. If I remove TinyMCE it works fine however. Please help. ...
1
vote
1answer
93 views

When using javascript to dynamically add a textarea, how can I render it as a tinyMCE editor (in wordpress)?

I have a plugin that allows the user to dynamically add sections that need to have the tinyMCE editor in them. The jQuery clones a div and places it into a container. One of the input boxes is a ...
2
votes
0answers
147 views

Uncaught ReferenceError:switchEditors is not defined

Is anyone familiar with this error? It is causing TinyMCE to break in my Wordpress theme. In console it gives me these two errors both seem to originate from wp-admin/post-new.php Uncaught ...
0
votes
0answers
52 views

Custom shortcode editor [BackboneJS & TinyMCE)

I'm using Wordpress 3.9.1 and I wrote a custom shortcode that working, but I'd like to custom it a little bit When I use my shortcode, this is the render in the admin page : [toggles ...
0
votes
0answers
46 views

Enable TinyMCE Rich Text editor for excerpt

I need my excerpt to have tinymce activated. I have tried the plugins (TinyMCE Excerpt) etc. but that one is outdated and showed only a rudimentary TinyMCE from the one in main edit window. I need the ...
0
votes
0answers
14 views

Adding signature at end of tiny mce editor

How can I append signature to tiny mce editor content. I need signature to appended at end of the content in tiny mce editor.
3
votes
1answer
74 views

Disable TinyMCE Drag and Drop

I would very much like to disable the drag and drop upload feature for tinyMCE (both the default one and the wp_editor() one) because it interacts with my custom pop up menus - (WP Trac). Right now ...
2
votes
1answer
136 views

Wordpress Visual Editor Stripping HTML Changes

When I use the WordPress HTML editor to add icomoon icons like this: <span class="icon-shield"></span> and then switch to the visual editor and then back to the HTML editor, the icons ...
0
votes
1answer
55 views

Revealing 'code' hidden button in TinyMCE4 and Wordpress 3.9.x

Please, I need help with Wordpress 3.9.1 and TinyMCE4. Before, with Wordpress 3.8.x and TinyMCE3, I have used this code in my functions.php theme file to reveal the hidden 'code' button in TinyMCE3: ...
0
votes
0answers
41 views

Word spacing disappears after pasting Bangla and Arabic text

On my WordPress site, I need to copy and paste a few articles from both a Joomla site and MS Word docs. When I paste the articles into my TinyMCE editor, spacing between several words disappears. ...
0
votes
0answers
26 views

TinyMCE buttons not appearing in Widget

I have a widget which uses Black Studio TinyMCE. When I click Visual I don't get any menu items. Looking at the Firebug console I have a jQuery error: tinyMCE.get(...) is null However, replacing ...
0
votes
2answers
90 views

How to remove the statusbar from the default wordpress editor?

How to remove the letter P from the default wordpress editor? Previously i have removed that P but now the entire code changed from the class-wp-editor.php file.
0
votes
2answers
31 views

Unregistering custom tinymce plugin?

I want to unregister a custom tinymce plugin in one of my child themes. The custom tinymce plugin uses basically: http://codex.wordpress.org/Plugin_API/Filter_Reference/mce_external_plugins excerpt: ...
0
votes
2answers
78 views

Multiple instances of TinyMCE are removing <p> tag

I'm using the following code in functions.php to add a TinyMCE box on custom field textareas inside the Editor: add_action('admin_print_footer_scripts','FT_TinymceCustom',99); function ...
0
votes
2answers
54 views

Disable TinyMCE autoformatting

I am trying to understand some basic concepts of wordpress. Let's say I am a coder and I made a template for my client. I am at the point when some basic layout of the page is complete and now I want ...
0
votes
2answers
60 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
99 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
39 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
48 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
198 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, ...
1
vote
1answer
158 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 ...
5
votes
0answers
126 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
43 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
132 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
76 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
73 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
72 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
32 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
49 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
59 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
30 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 ...