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
1answer
4k views

How to disable TinyMCE from removing span tags

I am posting Word generated HTML to WordPress via XMLRPC. Before I go to post.php, the format is correctly preserved in the database. TinyMCE performs its magic and I lose quite a few formatting ...
1
vote
2answers
863 views

Second toolbar in tinymce has “display:none” set?

I have a plugin that inserts a tinymce like shown below. Something causes the second toolbar, the theme_advanced_buttons2 to have display:none attached to their style attribute, effectively hiding ...
3
votes
2answers
516 views

Secure Validation of wp_editor in Theme Options

So I just found this great WPSE thread about security for themes/plugins. It answered most of my questions but it was created before the new wp_editor() function was built. I have two TinyMCE editors ...
0
votes
1answer
492 views

Multiple TinyMCE Editors in one Admin Page

Please could someone give me an idiots guide to adding more than one TinyMCE editor to a page editor page please. I am creating my own wordpress theme and the multiple editors are an essential part of ...
1
vote
1answer
459 views

How to remove_filter that filters iframes in posts? [duplicate]

Which filter if removed allows iframes to be inserted into wordpress posts?
4
votes
5answers
4k views

Remove HTML editor and visual/HTML tabs from TinyMCE

Is it possible to remove the Visual \ HTML tabs from wp_editor and display only the TinyMCE editor? Basically, right now, I'm using wp_editor to display the smallest possible TinyMCE editor I can - ...
2
votes
2answers
1k views

Registering custom TinyMCE buttons, for admin area, to work with custom instances of wp_editor

Thanks to this answer here, I am able to use different instances of wp_editor to determine which buttons each of my differing TinyMCE instances use. However, I'm struggling to actually get my buttons ...
2
votes
2answers
3k views

How to include own css on wordpress tinymce editor?

I have added some text on tinymce editor on load. (Every time you click on Add new the tinymce editor load with this text.) but problem is how to enable css class which are using in default text. ...
0
votes
1answer
311 views

How to make image in TinyMCE clickable

I'm trying to use the tinyMCE in the Wordpress front end and not using wp_editor() because I need the editor to be created through Ajax (something that a wp_editor can't handle as far as I know). ...
2
votes
3answers
1k views

Count Words using tinymce in the front-end

i am using a front built in (article directory plugin) tinymce with wp_editor. what ever i tried i cant get the word counter to work automatically.. i can count the words fine in the HTML tab using ...
9
votes
2answers
7k views

Creating a wp_editor instance with custom tinyMCE buttons

Is there a way to define wp_editor() with custom tinyMCE buttons? I've noticed the wp_editor function reference mentions that one of the $settings arguments can be tinymce (array) (optional) Load ...
0
votes
1answer
2k views

Using multiple instances of wp_editor in Custom Post Type admin area

I've written a custom plugin for my fishkeeping website which allows users to enter information about a species of tropical fish (i.e. "habitat", "distribution", "locality", etc). Each of these are ...
0
votes
2answers
706 views

Front-end image upload from TinyME

I'm trying to edit the Q&A Plugin (which for those of you that don't know it is a StackExchange-style plugin with Custom Post Types of Questions and Answers) to incorporate image uploads. It ...
0
votes
1answer
625 views

Auto embeding Vimeo/Youtube in custom fields (tinyMCE editor)

I'm using 2 extra TinyMCE editors on my pages to add extra textfiels in my theme pages. I now realize that the auto-embed feature is not supported on content delivered thought custom fields. So i need ...
1
vote
3answers
1k views

Preserving tabs and line breaks in <pre><code> when switching from HTML to Visual Editor

Tabs placed in a <pre><code></code></pre> block are stripped and line breaks are removed leaving a single continuous line of text. This occurs when switching from html to ...
5
votes
2answers
1k views

How to provide translations for a WordPress TinyMCE plugin?

I know that I can get my translations into JavaScript doing: $MyTranslations = array( 'translation1' => __("Some String 1", "MyTranslations"), 'translation2' => __("Some ...
2
votes
2answers
3k views

TinyMCE Advanced newline problem

I am using TinyMCE Advanced plugin according to qTranslate in a wordpress 3.3 installation. My question is: why does tinymce translate visual editor new line ("enter" key) in a ...
2
votes
1answer
2k views

Tinymce list of shortcodes button

does someone know about tutorial or how to do button with list of shortcodes in tinymce? For example like in this video http://www.youtube.com/watch?v=DmzUuwW9AU4 (This function in the video is exatly ...
1
vote
2answers
71 views

TinyMCE editor turns white on Biographical info [closed]

I tried out the solution found here: How to use tinyMCE for user “biographical info” without messing with any core file? and added it to my plugin code. The problem is, it turns the editor white (see ...
0
votes
1answer
545 views

How to save TinyMCE fields on Wordpress custom post type?

I have a custom post type "career_opportunities" with a "responsibilities" textarea box: <p><label for="responsibilities">Responsibilities</label></p> ...
1
vote
1answer
531 views

Shift-Enter in tinyMCE (wp 3.3.1) not working

With wordpress version 3.3.1, shift-enter to insert linebreaks in pages and posts is not working anymore. Has anybody observed this as well? Is there a fix for that? Thanks!
1
vote
1answer
669 views

Can I remove the Rich Text box editor for a specific post?

A few months ago I asked a similar question: Is it possible to remove the main rich Text box editor? and got the following answer: function remove_pages_editor(){ remove_post_type_support( ...
3
votes
1answer
4k views

How to get the input of a TinyMCE editor when using on the front-end?

I'm not sure why I haven't been able to find this, but does anyone know how to get the input of the TinyMCE editor? I am using it in the front end and want to be able to save whatever the user has ...
4
votes
2answers
897 views

Add a button to tinyMCE editor on Custom Post Type

How do I go about adding a simple button to tinymce on the default editor area of my new Custom Post Type? I'd like the button, when clicked, to ask for a text value. The script should then lowercase ...
0
votes
2answers
680 views

Pasting code into pre-formatted text in Visual Editor not working in 3.3.1

Pre-formatted text in the Visual Editor is not behaving like I'm used to. I've got an old installation (3.2.1), and when create pre-formatted text, all the line-breaks and spacing is preserved. In ...
4
votes
2answers
454 views

Is there a hook to put stylesheet and/or JS inside iframes (thickbox or tinyMCE) in admin area

I'm working on my admin area theme and I wanted to make some modifications on the way the thickbox and tinyMCE looks. I could make most of the changes through adding custom stylesheets and JS to my ...
1
vote
1answer
222 views

Rich text editor settings persist throughout all rich text editors

I have an issue I'm trying to better understand in order to force mce to true in the script check below. Background: I'm applying a rich text editor to the category description textarea to allow ...
0
votes
2answers
105 views

Post editor is 89953px tall. How to fix?

Using a self-hosted install updated to 3.3.1, when I go to the edit post screen, the editor is set to a height of 89953px. When I view source, I see the following lines in the markup for the post ...
0
votes
1answer
231 views

When I write posts I usually have to use non breaking space element in order to keep margins in between the sentences. why?

When I write posts I usually have to use non breaking space element in order to keep margins in between the sentences. In other words - the text looks good in my editor, it is with spaces, but when I ...
0
votes
2answers
367 views

Editor html formatting is different from view source

Here's what I see when I click on the HTML tab in the editor... <div style="margin: 10px 0;"><a href="test.jpg" rel="nofollow" target="_blank"> <img style="float: left; margin: 10px; ...
1
vote
1answer
340 views

Where is the WP auto-save draft JavaScript?

If you write a title, then move away from (blur) that input field, WordPress will auto-save a draft for you, likely in order to create a post slug placeholder for you. I'm looking to possibly extend ...
5
votes
4answers
2k views

No filter of code on switch from html to visual editor, how?

Yes, i have found other questions to this topic, but no have the same topic exactly and no solution for my problem. If you include code inside the html-tab and you switch to the visual mode, then ...
1
vote
2answers
806 views

How can I enable a TINYMCE rich text editor in the admin interface?

I'd like to add some text above my category archives, and I'd like to use the built-in Wordpress TinyMCE editor to do it. I've seen some plugins like black-studio-tinymce-widget which does a nice job ...
1
vote
1answer
460 views

Set Wordpress TinyMCE Editor To Readonly

I am trying to disable the tinyMCEeditor in wordpress so it is readonly if the post has already been published. I already have the logic for determining if the post is published (by using $post ...
1
vote
1answer
746 views

Disabling TinyMCE keyboard shortcuts altogether

I've disabled pretty much every button in the visual editor, besides bold and underline. The problem is that the functionality of the other buttons are still there with the keyboard shortcuts. Is ...
0
votes
1answer
957 views

Adding to he format dropdown menu tinyMCE in Wordpress

Does anyone know the steps needed to add a custom format to the blockformat (p,h1,h2,h3 etc.) dropdown in the tinyMCE editor in Wordpress? I've found a lot of different ways to do that, which seem to ...
1
vote
3answers
3k views

WordPress & TinyMCE: Failed to load

As per other posts, I am trying to produce a customised WordPress installation as a CMS for my fishkeeping website. On one of my custom post types (species, which displays information about a given ...
3
votes
1answer
542 views

Tiny MCE not adding p tag when saving theme option

I am adding tinymce edior with new wp_editor() function on theme option page. On submit the theme option sends data to option.php where it saves. But tinymce doesn't seem to convert the line breaks ...
0
votes
2answers
463 views

TinyMCE - no auto formatting using the_editor()?

I'm embedding the_editor on a admin page: <?php the_editor(get_option('options_name'),'options_name'); ?> And everything works fine, at least in back-end: BUT on the front-end side I'm ...
2
votes
1answer
331 views

TinyMCE is broken

After switching hosting server, the tinyMCE in the post editing screen does not fire up. Here is the message of the console. As you can see, wp-tinymce.php seems to fail. So far, I've tried : ...
2
votes
1answer
862 views

WP 3.3 my rich text category editor toolbar is gone!

Up until today's update, the code below has worked flawlessly to add a rich text editor control to the category description editor. Today it stopped working after updating to 3.3 Any clues what to ...
0
votes
1answer
435 views

remove WYSIWYG editor but keep media button

i need to remove the deafault TinyMCE editor from pages, i used this: remove_post_type_support( 'page', 'editor' ); But it removes also the media button that i need
2
votes
1answer
2k views

Remove “Are You Sure” dialogue when leaving editor

Anyone know of a nice way to disable that pop-up dialogue when exiting the post-editor? It says "This page is asking you to confirm that you want to leave - data you have entered may not be saved." ...
0
votes
2answers
830 views

jQuery UI styles conflicting with TinyMCE dialog

I'm using jQuery UI for a few custom controls on the page edit screen and I've noticed that the styling of the jQuery UI dialogs are conflicting with the TinyMCE dialog. Specifically the buttons and ...
0
votes
3answers
939 views

How to use tinyMCE for user “biographical info” without messing with any core file?

I noticed when you typein the user's “biographical info” on the profile, it shows up in one page! Looks really terrible. So: Is there a way to use tinyMCE or other solution for user “biographical ...
0
votes
2answers
653 views

TinyMCE doesn't work correctly in the Media Modal Window

I need to add TinyMCE to descriptions of images. For it, I'm using this code in my functions.php: function add_tiny_mce_hook() { if (function_exists('wp_tiny_mce')){ wp_tiny_mce(false, ...
-2
votes
2answers
198 views

get backend to front end

im trying to mashup this german have gotten it to work with tinymce im trying ti mash it up with this get posting from to the front end would be glad if someone has done similar things or guide me ...
3
votes
2answers
2k views

How to add TinyMCE keyboard shortcut

The most thorough documentation I can find of how to add a new keyboard shortcut to TinyMC is at this page: http://www.lifeinsuranceonmyterms.com/other/custom-keyboard-shortcuts-for-tinymce-how-to It ...
4
votes
2answers
1k views

Forcing reload of editor-style.css

Is there a method to force the refresh of editor-style.css, when I change manually the stylesheet for the TinyMCE editor? Modification doesn't show immediately but they will be cached in the admin ...
0
votes
1answer
2k views

How to display TinyMCE HTML view?

I'm displaying TinyMCE in my plugin's settings using wp_tiny_mce(): <?php wp_tiny_mce( false , array("editor_selector" => "a_nice_textarea"));?> <textarea class="a_nice_textarea" ...