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

10
votes
2answers
7k 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
329 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
282 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
102 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
52 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 ...
8
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
1k 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
89 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
181 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
194 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
179 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
143 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
166 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
142 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
195 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
43 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
112 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
94 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
156 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
120 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
27 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
60 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
103 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"] ...
0
votes
1answer
496 views

Using Iris Colorpicker on TinyMCE shortcodes page [duplicate]

I'm actually working on a small shortcodes plugin. On plugin main file I register TinyMCE button and link core js about button: add_filter("mce_external_plugins", "shortcodes_tinymce_plugin"); ...
3
votes
1answer
6k views

TinyMCE: adding CSS to format dropdown

I successfully added a TinyMCE stylesheet using add_editor_style() so that I can preview the styles in the body of the TinyMCE editor. However, am I right in assuming that the add_editor_style() ...
0
votes
1answer
128 views

Add unique class or ID information to tinyMCE

Is there a method to apply a unique body class ID to the editor in the same way that body class information is added to the published page? I am using the add_editor_style() function to render the ...
1
vote
2answers
565 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. ...
0
votes
0answers
151 views

Add insert/edit link functionality to front end tinymce

I would like to know how to insert/edit link functionality at front end tinymce added by plugin. Before that I thought I can use WordPress's tinymce by wp_editor() but, wp_editor is not working on ...
0
votes
1answer
40 views

regEx wp core file

I have an issue with the way WordPress handles creating a page anchor. The page anchor button is already defined in the WordPress TinyMCE code.. and can be added using either the Ultimate Tinymce or ...
0
votes
1answer
185 views

How to integrate a different (JavaScript) editor in WordPress?

I'been using WordPress since 2005 and although I'm pretty much conquered in all respects, I still wonder how some possibilities are not there for the user. One of them: changing the default TinyMCE ...
0
votes
0answers
34 views

WBR (word break opportunity) elements being inserted into shortcode $content in posts

Greeting all, I've written a simple WordPress shortcode which wraps inline $content in <code> tags. I see that sometimes the $content contains <wbr /> elements, which must be inserted ...
0
votes
1answer
130 views

TinyMCE: Move buttons from 2nd row to top row

I have disabled many of the TinyMCE buttons making the two rows quite empty. Is it possible to move the remaining buttons from the second row (that is displayed when hitting the Kitchen Sink button) ...
7
votes
3answers
262 views

How to modify image editor dialog options on WordPress?

I am trying to hide the Alignment radio buttons for images uploaded to the post content area, but can't figure out how to add a custom CSS or JS file to the Image Editor dialog. I've successfully ...
0
votes
1answer
140 views

Adding New Row of Custom TinyMCE

I have added some custom tinymce to the WP editor using the following code: PHP add_action( 'init', 'my_theme_buttons' ); function my_theme_buttons() { add_filter("mce_external_plugins", ...
0
votes
1answer
44 views

Change type of permalinks on TinyMCE link dialogue

I recently ran into a problem when inserting text links into post content, and then updating the target post's slug or changing permalink options - the link in the post content won't get updated. ...
0
votes
1answer
248 views

Using post ID in custom tinyMCE button

I'm building a simple plugin and need to be able to access current post id when user clicks custom tinyMCE button (inside its onclick function). How should I get current post ID to do that. Just for ...
1
vote
0answers
175 views

How to protect parts of my code from TinyMCE modification when switching from text to visual mode?

I've got the following problem. When I switch from 'text' to 'visual' mode - TinyMCE is automatically messing around in the code doing unwanted things which breaks my styling - not so good ;/. Is ...
8
votes
5answers
942 views

How to add custom CSS (theme option) to TinyMCE?

I'm trying to add custom CSS (set via theme options) to the TinyMCE visual editor in WordPress. On the front end, the theme generates this CSS and outputs it on the wp_head hook. The problem I'm ...
0
votes
0answers
132 views

Add buttons to “teeny” editor

I managed to create a TinyMCE plugin and add it to WordPress editor (which is the same as bbpress). So far so good. Using $ args ['teeny'] = false; config, my tinymce plugin’s button show normal. ...
0
votes
2answers
433 views

TinyMCE Editor removing <p> and <br> and putting &nbsp; instead

Steps for problem reproduction: Open WordPress Admin Dashboard (I use version 3.7); Click on Page > Add Page; On the editor, choose the "HTML" Tab; Write <p>Lorem ipsum dolor sit ...
0
votes
1answer
427 views

Cite-Tag for blockquotes

I want to have a cite underneath my blockquote, that has a certain style. "Blockquotes are an essential part of a fancy website." – Cite The markup ...
0
votes
1answer
88 views

Send data to Editor before saving the post

I have created a meta field in the new post page. When I add some content in the meta field, I store it in a hidden textarea. When a post is saved, I want to clear all content of the editor and copy ...
-1
votes
1answer
163 views

Using TinyMCE fiddle for node filter to add id attribute to anchors

I'd like to edit the code of the anchor-maker in TineMCE so it will paste into the code the following line: <a name="#ANCHOR" id="#ANCHOR"> instead of: <a name="#ANCHOR"> Where do I find a ...
3
votes
6answers
2k views

How to force TinyMCE in WordPress to replace newlines with <br> tags and not with <p>&nbsp;</p>

TinyMCE editor inserts <p>&nbsp;</p> instead of <br> tags when I press enter in my text for a new line. How to force TinyMCE in WP to replace newlines with <br> and not ...
1
vote
1answer
738 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) { ...
0
votes
0answers
29 views

wordpress is adding tags and messing with layout

i've searched and not found an answer specific to what i'm doing i'm hand coding a page of thumbnails with simple html and css. i'm writing it in a text editor so it's easier on my eyes and then ...
0
votes
2answers
3k views

Using TinyMce with textareas in meta boxes on custom post types

I am trying to use the http://www.tinymce.com/ plugin to add a tinymce to my textareas in my meta boxes I have created. I've googled other ways and either I cant get it to work or didnt grasp the ...
1
vote
1answer
120 views

TinyMCE Styles Dropdown not adding html tags other than span

I am trying to add h1,h2 .. in the TinyMCE Styles Dropdown with my other html elements. I have tried the following code, but the problem is it only adds styles if I use span as 'block' value. If I ...