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
1answer
18 views

How disable checkbox when listbox value changes in tinymce

I'm creating a custom popup in tinyMCE for WordPress, to insert video shortcodes, so I have a list of websites (YouTube, Vimeo, Vine, and others) in a listbox, and a checkbox to let the user decide to ...
1
vote
1answer
281 views

Change TinyMCE Block Format Labels

For the sake of my site editors, I'm trying to rename the Headings in the TinyMCE dropdown. I looked into filtering options but came up totally empty. I've also tried a javascript solution but ...
0
votes
1answer
1k 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, ...
-1
votes
0answers
18 views

TinyMCE PHP vs jQuery - add media button

My custom post's admin section uses both the built-in PHP and jQuery versions of TinyMCE on the same page. I use the PHP version on static content (using wp_editor) while I have to use the jQuery ...
0
votes
2answers
273 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. ...
0
votes
0answers
9 views

Wordpress built in TinyMCE and jQuery

I am trying to use jQuery (the jQuery shipped with wordpress) to replace a dynamically generated textarea with TinyMCE. var fieldID = jQuery(parent).find("textarea#field_id_1"); tinyMCE.init({mode: ...
1
vote
1answer
23 views

Multiple TinyMCE editors in dynamically generated textareas

I have text-areas dynamically populated in the admin section of my custom post type. <div class="media_div"> <span>Media</span> ...
2
votes
1answer
1k 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 ...
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 ...
2
votes
0answers
30 views

TinyMCE - Add button that changes direction of selected text

Ok, I am going to create website in Urdu(rtl) & English(ltr) language that contain paragraphs like this: <p style="direction:rtl">کیا حال ہے buddy? سب خیریت ہے؟</p> You can see that ...
1
vote
1answer
46 views

How to Add TinyMCE's plugin in wordpress?

I had found a TinyMCE's plugin that change the direction of selected text. How to add this plugin in wordpress? Any one guide me? I had tried to add it in ...
0
votes
1answer
25 views

Better code/text editing for posts and pages?

What is the most well known or liked method or plugin to improve the text editor for posts/pages? I would love to have syntax highlighting and formatting, along with other IDE type functionality in ...
0
votes
0answers
19 views

Add tinymce dynamically via Javascript

I'm struggling to add dynamically a tinymce textarea. I added a custom meta box which contains a button that should add a tinymce. As I'm on post/page, I guess I don't need to include any scripts ...
3
votes
1answer
7k 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
605 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, ...
6
votes
1answer
65 views

Modify links when inserted by WYSIWYG editor

Is there any possibility to hook into the editor of WordPress so that if a link to an internal content is inserted via the WYSIWYG editor the post id of that linked post is added as a data attribute ...
0
votes
2answers
88 views

allowing all HTML tags in tinymce editor

I have a plugin where I am creating a shortcode that creates a form with a textarea field. I would like the user to be able to insert a complete HTML page into the editor - including the HTML and BODY ...
1
vote
2answers
347 views

Excluding post type from WordPress link builder

I have created a custom post type with parameter 'public' set to true. This is because I have to have it accessible in plugins that help you to build queries for post display, such as the Views (part ...
1
vote
2answers
499 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 ...
3
votes
1answer
149 views

How to disable TinyMCE 4 keyboard shortcuts

I want to disable all TinyMCE 4 keyboard shortcuts. I have looked around for a workable solution but only realised how poor the TinyMCE documentation is.  I did find one answer here but either I do ...
0
votes
1answer
265 views

Insert media button will always add into the same tinyMCE editor

I have an issue with the insert-media button. I have 2 instances of tinyMCE with both Add Media button. When I add a media in one of the two tinyMCE, all my media will go in this after, whatever which ...
1
vote
2answers
263 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 ...
0
votes
1answer
28 views

Disable HTML (Text) Tab in Post Editor

I am attempting to disable the Text tab in the post editor but not having any luck. The first thing I want to do is set the Visual editor to be the default but this code does not work (it is being ...
3
votes
1answer
803 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
1answer
22 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
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 ...
0
votes
2answers
486 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 ...
1
vote
1answer
865 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 ...
2
votes
1answer
1k views

Issues creating a tinyMCE plugin that creates a custom link

I'm working on a plugin that works similar to the "link" button on tinyMCE: The user highlights text -> presses a button -> enters text into a box in a thickbox popup -> submits the form -> the user ...
0
votes
0answers
18 views

Creating an editable component in TinyMCE editor (like Read More component)

I want to create a component in a TinyMCE editor that is created by clicking a button in a toolbar. So I already managed to add a button to a toolbar and add some text to an editor by clicking it, but ...
2
votes
0answers
95 views

Completely strip any hidden formatting when pasting into TinyMCE

In WordPress v4+, I want to remove all hidden formatting when users paste content into TinyMCE visual editor. The Paste as Text button works when users insert text from Microsoft Word but doesn't do ...
5
votes
3answers
353 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
0answers
15 views

tinyMCE, style format dropdown customize

I have been looking into tinyMCE api and documentation to solve this problem but couldn't solve.. I am doing following things to add style_format. what it does it creates a wrapper div around the ...
0
votes
1answer
519 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
0answers
49 views

TinyMCE editor doesn't keep new lines

I'm using the plugin USP-Pro to let users submit content to a Wordpress blog. The form I've created contains different input fields and one textarea. For the textarea I've used the attribute richtext ...
4
votes
1answer
877 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
1answer
21 views

Remove heading tags on line break

I have to add line breaks in a h1 paragraph using the visual editor. On every line break Wordpress automatically adds h1 tags to every new line. Example: <h1>Watsup</h1> ...
2
votes
1answer
72 views

Am I using the right hook for removing quicktags on the admin TinyMCE?

This is more of an excercise than something for a client. Anyway, I'm trying to disable the quicktags when you're on the dashboard and you click on Comments > Edit Comment. On that screen, there's a ...
0
votes
3answers
240 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; }
1
vote
2answers
48 views

Should the WP post editor B (bold) button be inserting a <b> tag instead of <strong> in HTML5?

Using WP 4.0. I thought that the html5 schema was supposed to be turned on by default. That would mean that clicking the B (Bold) button would generate a <b> tag, rather than a <strong> ...
0
votes
1answer
15 views

mce_external_languages: how does it really work?

I have been reading very carefully and more than once the documentation, yet I don't understand how to provide a plugin with multiple languages. In the example there is an array, such as: $strings = ...
2
votes
1answer
253 views

Show All Posts Insert Edit Link

When I click to insert/edit link in the tinyMCE rich editor for a post, then click "Or link to existing content", it shows only posts that are live and published. Is there a way to get the list that ...
1
vote
0answers
27 views

Change tinyMCE editor to allow marked content when pasting from Word

I'm a big supporter of how WordPress handles pasted text from Word, however for my client I need to change this. My client is marking text within Word to use as a reminder (background color). Does ...
1
vote
2answers
133 views

Add CSS Class to Link in TinyMCE editor

In searching for a solution, I've come across the plugin to enable a dropdown of CSS styles already present within a stylesheet. What I want is to allow the editor to add CSS Classes from a textbox. ...
0
votes
0answers
39 views

How can I modify tinyMCE deafult inline format?

I am using wordpress 4.0+ and I am having some issues when aligning my content. The last paragraph breaks and it displays like this after saving the article: < p style=”text-align: ...
0
votes
1answer
37 views

Shortcode from admin textarea to page

I've added shortcode to a page via a custom textarea in my Wordpress admin, but the shortcode is seen as text and gets wrapped in quotation marks, so it doesn't work. This is basically how I ...
1
vote
1answer
116 views

Using spellchecker plugin in TinyMCE

I have installed PSpell and updated the config file to use it instead of GoogleSpell. Then in my functions file I have added spellchecker to the plugins part and the button. The button shows up but it ...
0
votes
0answers
13 views

How to update TinyMCE JavaScript files in WordPress

I'm attempting to update TinyMCE JavaScript files that are included in the WordPress core, inside wp-includes/js/tinymce. Example: I want to update the paste plugin in ...
1
vote
0answers
48 views

tinymce.get() returns error after ajax request

In the backend, after an event I make an ajax request which populates certain fields. The problematic field is the textarea, for which I use wp_editor like so: <?php $settings = array( ...
0
votes
0answers
20 views

WordPress dynamic menu with TinyMce

I came across a problem with TinyMce in Wordpress. I've got it set up in my theme, and it works just fine when it's hardcoded. I bump into a wall when trying to create a dynamic one. In short, I need ...