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
609 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 ...
5
votes
3answers
466 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 ...
0
votes
1answer
563 views

Issue displaying multiple TinyMCE editors with WPAlchemy

I have a custom post type with a WPAlchemy admin meta box class including multiple textareas with TinyMCE editors(for adding content to the custom post template). I've gotten the editors to display ...
0
votes
1answer
359 views

Change padding to text indent in “Increase indent” TinyMCE

If you click "Increase indent" in the visual editor it adds the following code into the text editor: <p style="padding-left:30px;"> How to change it to text-indent: 30px; not affecting the ...
0
votes
1answer
10 views

How can I allow the user to press enter without creating a new element in the editor?

I wrote a tinymce button to place a special div on my editor (I didn't use the format dropdown because the client was unsure of it). When the user presses enter inside the div it creates another ...
1
vote
1answer
967 views

Adding Custom Styles to the MCE dropdown toolbar

I am using the following code to add style drop downs the mce toolbar, I want to be able to add a h1 element with the drop down but my code isnt working, I have tried a couple of different ways but it ...
0
votes
1answer
12 views

Visual composer causing conflict with TinyMCE [on hold]

My Tinymce is not showing up by default. All out of the sudden, without any new plugin installation or what so ever, VC plugin started to force my text editor (when creating a new entry) to switch ...
-1
votes
0answers
40 views

Place a placeholder inside TinyMCE [closed]

I wanted to place a placeholder inside the text box, but the sample text won't show up. This is my current code: wp_editor( esc_textarea( $post->post_content ), 'post_content', ...
0
votes
3answers
299 views

Wordpress stripping out BR tags, need assistance

Im having a problem where WP for some odd reason is stripping out my BR tags. Ive looked online and have read a few solutions that people offered including the installation of TinyMCE advanced plugin ...
4
votes
1answer
2k 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 ...
1
vote
0answers
19 views

Change syntax styling of TinyMCE HTML Text Editor

So I have customized the CSS display for the TinyMCE 'Visual Editor' by using this here: /* Add Theme CSS to WP Content Editor -------------------------------------------------- */ function ...
0
votes
1answer
28 views

Blank spaces show as a question mark

I have a client who wanted to restore her old website from 5 years ago with a very small budget. I suggested that she at least uses Wordpress for CMS and now she has a limited editing capability of a ...
0
votes
1answer
510 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 ...
1
vote
0answers
15 views

Reset Undo on the tinymce editor

I have one editor where I switch between content in one editor, and what I want to do when I set the new content, I would like to reset the undo possibility. I have read on this site ...
0
votes
0answers
38 views

Editor Styles Not Working

I am trying to re-style the TinyMCE editor here: http://dannymcgee.net/duskguard/forums/forum/general-discussion/ I've tried both of these in my functions.php: add_editor_style(); or ...
0
votes
1answer
490 views

How to stop editor removing space (&nbsp;) in the beginning of the paragraph

I use WordPress with TinyMCE in Chinese. It needs double white spaces in the beginning of each paragraph. But the editor will automatically removing all spaces(white space and nbsp; code) in the ...
3
votes
1answer
1k views

TinyMCE popup windows using WP functions

In my editor I would like to use a TinyMCE generated popup to insert in the textarea some complex shortcodes. I use the TinyMCE API to show the popup (bottom of this question). The popup is a PHP file ...
0
votes
2answers
389 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
31 views

How to prevent shortcode preview from breaking in tinymce editor?

I am creating visual preview for shortcodes (just like captions). I have don't most of the parts but my preview html is getting broke by the editor when post is saved. I have investigate it further ...
4
votes
1answer
1k views

TinyMCE format dropdown no longer showing style previews

In the past, by adding the editor stylesheet, I was able to see the options in both the Format and Styles drop-downs, as they would appear in the post. That is, the entry in the menu would be styled ...
0
votes
1answer
62 views

Add Item to Custom TinyMCE Menu

I've created a custom menu which appears on my TinyMCE toolbar but would like to add another item to that menu in a separate function elsewhere in my plugin (depending on whether some other ...
0
votes
1answer
34 views

Add Button to TinyMCE Custom Menu

I've added a new button with a menu to the TinyMCE visual editor using this tremendously helpful tutorial but would now like to add further items to this menu depending on whether various post types ...
0
votes
2answers
356 views

Removing the TinyMCE editor for a given page template

I was looking for a way to remove the TinyMCE Editor for a specific page template in a theme (in my case it's page-home.php). I found the following code, which works, however, I was wondering if this ...
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 ...
0
votes
1answer
2k views

“switchEditors is not defined” with wp_editor() in jQuery UI tabs

Making a WordPress plugin, using WordPress 3.5.2 I'm using wp_editor() on the front end, inside jquery UI tabs [ajax loading tabs + 2 editors on the same panel], and I'm getting the following error, ...
8
votes
3answers
12k 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
22 views

`tinyMCE is not defined` after migrating site to server

After migrating site tinyMCE (text editor) top bar have disappeared & text color have changed to black, I am getting 4 errors in concole and below is a snapshot of it. I am using WordPress ...
3
votes
1answer
76 views

WP_Editor - Remove TinyMCE Toolbars

I've created a TinyMCE Editor in a Metabox and I'm trying to remove the toolbars. According to The Codex I should be able to pass it an array of options to override the default TinyMCE. Here's what I ...
0
votes
1answer
44 views

how to see P and BR tags in tinymce?

As a developer, I'd really like to have the ability to see every tag written out on the editor in source mode. Is there a way? Some filter, action, or so?
0
votes
1answer
45 views

How to get WP editors tinyMCE instances

My main goal is to get editor content when it changes and update a live preview. For this I need to add an event listener to the editor. BTW, I have two editor in the same page and the page is loaded ...
0
votes
0answers
30 views

How do you prevent the WordPress editor from stripping out <BR> and <P> tags

When I flip between the Visual Editor and the Text Editor, the <p> and <br> tags get stripped out. How do I prevent this?
0
votes
1answer
699 views

add button to tinymce

i have the following method to insert a button in Tinymce editor: in funcitons.php: class myclaff { function __construct() { add_action( 'admin_init', array($this, ...
26
votes
3answers
4k views

Disable emojicons introduced with WP 4.2

So WP 4.2 introduced emojis (smileys) that basically adds JS and other junk all over your pages. Something some people may find shocking. How does one completely erase all instances of this?
1
vote
1answer
74 views

Add a select a class dropdown in tinymce

How can I add add a dropdown/select with pre defined class names into the Wordpress wysiwyg (tinymce advanced) that I can put on different elements? What I'd like: Add some text or any other ...
1
vote
1answer
901 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 ...
0
votes
1answer
18 views

Extending the “Add Media”-Dialog … how do I finally insert something to the Post?

I'm developing a plugin, which extends the "add media"-Button in the Post-Editor. I found an example (I think it was nextGen Galley maybe) where wp_iframe is used in the add media dialog. For some ...
0
votes
0answers
24 views

Can't insert links or edit image attributes with visual editor

I am trying to make popup edit screens where I have text input and a wp_editor. My only problem in the editor is that I cant insert links with the visual editor or edit image attributes with the ...
0
votes
0answers
8 views

how to disable hidden paragraphs only on admin editors?

is there some smart way to have wordpress stop hidden paragraphs on the code view of the editor? This sentence complitely describe the problem...
0
votes
1answer
47 views

Wordpress tinyMCE Keep Wrapping <p> Tags To HTML Codes When Saving

Wordpress tinyMCE keep adding <p> tags when I saved my custom post types in visual mode opened! I had searching for many solutions, but not working. Here is the solution that I found, but this ...
0
votes
1answer
84 views

Replace Taxomony Description Field with Visual/WYSIWYG Editor

Is there a way to add a TinyMCE editor to the taxonomy description field on the term editing pages? The solution here (Can you add the visual editor to the description field for custom taxonomies?) no ...
0
votes
0answers
48 views

TinyMCE custom button disapear from visual editor after wordpress update

I am using typegrid wordpress theme. This theme comes with shortcodes buttons on visual editor but when i updated wordpress to 3.9 the shortcode buttons on visual editor disappeared. Can some one ...
0
votes
0answers
46 views

How To Add Custom TinyMCE Buttons In Text Mode

When I add custom buttons to the WordPress Post Editor (TinyMCE), they appear in the Visual mode, but are not visible in the Text mode. I have seen plugins displaying buttons in both the modes. Any ...
0
votes
0answers
16 views

Why can't I type [ ] opening and closing brackets on the Visual tab?

Trying to type [ brings the text area to full screen. Trying to type ] does nothing. It really inhibits my shortcode usage. On the Text tab it works fine, so it's only in TinyMCE. I use an european ...
0
votes
3answers
218 views

Wordpress tinymce prints empty P tag and break html format

I'm raising this problem because I don't find a latest answer and the problem still exist to me. I'm running wordpress 4.2.2 with x theme when I'm editing the content via WP default editor (tinymce). ...
1
vote
1answer
49 views

Add table button in editor without Plugin

i want to add the "tablecontrol" ty the editor. This is what I've tried: function my_mce_buttons_1($buttons) { $buttons[] = 'superscript'; $buttons[] = 'subscript'; $buttons[] = ...
0
votes
0answers
22 views

open wordpress tinymce editimage dialog on image click from editor

How can i open wordpress tinymce editimage dialog instead of image edit toolbar options. I did following but not seems working editor.onClick.add(function(editor, e) { if ...
2
votes
2answers
4k 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 ...
3
votes
1answer
519 views

Possible to stop Wordpress from adding p1, p2… classes to p tags in TinyMCE?

I've noticed the first time today that WP is adding numbered class names (p1,p2…) to my p tags. I have the following TinyMCE init related part in the functions.php. function my_mce( $init ) { ...
3
votes
2answers
2k views

Shortcode to insert <!--nextpage-->

Since wordpress does not have a menu icon (aka "user friendly) way to add the command to a post or page, I'm trying to create a shortcode to do it. However, as logic would have it, its not that ...
0
votes
0answers
106 views

Tinymce show/hide textarea when checkbox clicked

I have extended my tinymce as seen below. Now I am trying to make the textarea msgGeneral visible when i click on the checkbox fbSBtn. The code i have below does not work. Any suggestions from you? ...