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
3k views

Insert text a cursor position in to TinyMCE text editor

I have a small function that allows a user to click a button under a textarea, and have the relevant text inserted (this works in conjunction with the jQuery textrange plugin). However, because I'm ...
0
votes
1answer
54 views

How to prevent tinyMCE editor to be loaded completely in Text Editor?

I'm working on a theme. Part of which there are editing modes: Syntax-new mode using CodeMirror the two native modes (Visual and Text editor) I have an odd scenario that tinyMCE is loaded on ...
4
votes
3answers
2k views

Removing buttons from the editor

I have this nice little function to remove buttons from the tinyMCE editor in WordPress, so far I've been able to remove most of the ones I need to. function custom_disable_mce_buttons( $opt ) { ...
1
vote
0answers
791 views

typeerror this.getdoc(…) is undefined wordpress [closed]

I have face this issue after upgrade WordPress 3.0 to 3.5.1 . Can anyone guide me how can I fix it. My all tinymce editor stop working after upgrade.
0
votes
1answer
69 views

How to print [embed] code in wordpress [duplicate]

I would like to print the following code in wordpress. [embed]http://www.youtube.com/watch?v=9bZkp7q19f0[/embed] But every time I use that code in the wordpress editor, it automatically embeds the ...
0
votes
1answer
142 views

Multiple Block Quotes without using HTML

First of all, I have a client that has no HTML knowledge. He wants his all his posts to have a certain format where within the post body, he can add multiple pull quotes with different styles. Note ...
0
votes
2answers
496 views

TinyMCE Editor Set Default Tab

I removed the tabs from the WP editor using wp_editor('', 'some-id', array('quicktags' => false) ); But sometimes when the page loads the TinyMCE field loads with the Text tab selected: ...
1
vote
2answers
1k views

Qtranslate + Woocommerce (multiple tinymce) [closed]

I am using WooCommerce and qTranslate to develop an ecommerce website. I run into the following problems. I've googled it and days of trying to no avail. On the top of the product edit pages, the ...
0
votes
1answer
207 views

Example for use tinymce in wordpress 3.5.1?

I'm search the topic about how to use tinymce in wordpress 3.5.1 and i not found. I'm writing plugin and i have textarea that i want to add timymce into What should i do to add tinymce into suppose ...
0
votes
1answer
301 views

What makes a placeholder resizable in Tinymce?

It's not that hard to make a plugin to TinyMCE, similar to what the Wordpress gallery is doing in WP 3.5. Unfortunately, these custom placeholders are always non-resizable, although they show the ...
0
votes
1answer
728 views

Convert textarea with wp_editor

I have a custom tabbed menu which has some input fields that works properly. I followed this tutorial: ...
0
votes
0answers
153 views

How to change name of tinyMCE toolbar button?

I want to change the tinyMCE pop-up from "Blockquote" to "Indented Quote" Lots of posts about customizing tinyMCE but none explain to how change just the titles.
0
votes
0answers
362 views

Sorting UL Listing Within the TinyMCE Visual Editor in Wordpress

I am trying to use jQuery sortable within the TinyMCE Visual Editor in WordPress. I have had some success in that I can get a UL list to sort, but only if I drag the mouse OUTSIDE of the actual ...
1
vote
1answer
342 views

TinyMCE Advanced list type drop-down

I want to be able to change the list-style-type, for example: list-style-type: circle; list-style-type: square; list-style-type: lower-roman; list-style-type: lower-alpha; ... In the plugin ...
1
vote
1answer
1k views

HTML5, WordPress and Tiny MCE issue - wrapping anchor tag around div results in funky output

So I'm using HTML5 on a website and am trying to wrap a div in an anchor tag, which is supposedly acceptable in HTML5 websites. But when I do this... <a href="#mylink"><div ...
0
votes
3answers
2k views

Adding rich text editor to my plugin

Hello Wordpress users, I'm trying to add a rich text editor to my own plugin. So I googled it first of course and I found serveral answers like: ...
1
vote
0answers
246 views

HTML added to editor when deleting shortcodes in Chrome browser

Example: [shortcode1][/shortcode1] [shortcode2][/shortcode2] In the above example, using the google chrome web browser, while in visual mode in the post editor, highlight shortcode 1 by ...
0
votes
1answer
143 views

TinyMCE Advances is removing blanks (“ ”)

I want to keep blanks " " inserted by the user in Wordpress with the TinyMCE Advanced plugin. He keeps them only if there are some letters at the beginning. E.g. Fr 09:00 - 18:00 But he don't ...
3
votes
1answer
264 views

Hacking TinyMCE for better usability (shortcodes and html)

I'm looking for some theme or plugin examples that showcase ways in which to enhance the usability of editing shortcodes and/or custom html objects that have been inserted into the editor. I know ...
6
votes
1answer
116 views

API to trigger prompt on leaving page

I have a proprietary plugin that creates a metabox on the edit-post page. When the data managed by the plugin is edited and the user navigates away then we would like the user to be prompted as ...
0
votes
1answer
607 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, ...
0
votes
1answer
107 views

Add custom classes to TinyMCE generated markup

Is there a way to add custom classes to the markup that the tinyMCE WYSIWYG editor? Obviously, I could apply any styles by targeting the post/page wrapper, but my concern is getting markup to play ...
1
vote
4answers
2k views

wordpress 3.5 tinymce height

I've just upgraded wordpress to 3.5 version and I noticed that TinyMCE Advanced Editor is not as tall as before. How can I change default tinyMCE height? UPDATE This is the screenshot of section I ...
-1
votes
1answer
195 views

Is there an alternative way to upload html without using TinyMCE?

I am comfortable editing HTML (I usually use Notepad++). Is there a way for me to upload HTML to my WP site without using the TinyMCE editor? I don't like how it strips tags or puts in unwanted ones. ...
0
votes
1answer
48 views

Multiple TinyMCEs breaking Distraction Free Writing

I created a meta box which has multiple tinyMCE editors. However, now when I go to edit a page and click the fullscreen button on the main editor, it shows the content of the metabox. When I close ...
0
votes
1answer
60 views

Problem to insert links on some text in post

When i try to add a local link (toward my own pages) on some text in my post, the AJAX function run indefinitely and didn't find anything. I've opened my browser's console and i've saw the following ...
0
votes
2answers
194 views

Why Editor reformats my code

I'm using TinyMCE Advanced and SyntaxHighliter plugins on my WordPress install. Why does the editor change my inserted code, from: [php] <?php /** echo('code'); /**/ [/php] to: [php] ...
4
votes
1answer
173 views

Numbering sections and block-level elements in wpautop(); Wordpress as CMS for long-form writing;

I am starting to learn how to write plugins for Wordpress. I'm interested in using WP as a CMS for long essays (6000-9000 words or more). My problem is what I call the Kindle problem, which is how do ...
3
votes
3answers
644 views

Make fonts.com font work in TinyMCE (iframe referrer issue)

I'm using custom (commercial) fonts in my project. Everything works well in the frontend. I noticed however that, when trying to add this font to the TinyMCE iframe, I get a 403 for the webfonts. The ...
0
votes
3answers
164 views

Trouble using wordpress functions in a pop-up modal form

I'm working on a plugin and I've added a button to the tinymce editor that pops up a modal form, with options for the shortcode, and then inserts the shortcode with the selected options in to the ...
0
votes
1answer
165 views

Get the More QuickTag button back

I can't work out how to add the WP quicktag button back into the editor, I have customized the editor as below: function gimko_format_tiny_mce($in) { $in['remove_linebreaks']=false; ...
2
votes
1answer
866 views

TinyMCE strips line breaks on mceAddControl

I'm using wp_editor to add wysiwyg fields to admin edit screens. Each wysiwyg lives within a draggable meta box. Since TinyMCE has issues with dragging, I'm using the following code: // on the ...
1
vote
1answer
651 views

Add tinymce to widget textareas

I've got several custom widgets which are extended from WP_widget. Many of these have textarea fields. I'd like to be able to apply a special css class to certain of these textareas in order to ...
0
votes
1answer
253 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 ...
0
votes
2answers
554 views

Problem with Line spacing in wysiwyg editor in WP 3.5.1

Since updating to 3.5.1, I can no longer get single line breaks in the WYSIWYG editor. I used to be able to shift-return for a line break and return for a paragraph break. But now all lines have ...
0
votes
2answers
2k views

How to add a class to ul tags created by the WordPress editor Tinymce?

I want to set a special styling for the ul tags created by Tinymce only, which means only for posts and pages, I only found this filter tiny_mce_before_init with an example on how to add custom style ...
1
vote
1answer
564 views

tinyMCE duplicates previous block element when pressing return (visual editor)

Going crazy with this. Can't figure out if this is normal behavior. I have added a filter to rewrite image inserts to use <figure> and <figcaption>. Works well. However, when I insert ...
3
votes
1answer
219 views

Possible to create placeholder images in Wordpress editor that are clickable (should bring up uploader)?

Working on a project where I would like to have buttons within the actual visual editor area where the user can click on the placeholder image and it brings up the upload dialog. I've seen that ...
2
votes
1answer
149 views

WordPress MultiSite Paste from Word Tool Does not work

We're using multisite and pages/posts will not paste from word using the paste from word tool. I've tried everything imaginable, disabled theme (no plugins or network plugins enabled) We've tried ...
0
votes
1answer
806 views

How to close tinymce inline popup

I have been looking around, but am unable to close the popup programmatically. The following code does not seem to work. tinyMCEPopup.close() TypeError: Cannot read property 'windowManager' of ...
0
votes
1answer
2k views

How to remove buttons from tinyMCE in wp_editor added via AJAX

I've created a plugin with a custom post type that uses the standard editor. Also on the page, I've got a button that causes a jQuery dialog to pop up that also contains the tinyMCE editor created ...
2
votes
0answers
352 views

Adding dropdowns to the tinyMCE editor

I'm new to php and wordpress but I've managed to figure out both pretty easily thanks to the community, forums and blogs. I'm close to figuring out what i want to do here, but wasted hours without ...
0
votes
1answer
979 views

Removing <p> tags around <div> tags

I’d like to stop WP from wrapping <p> tags around <div> tags in the TineMCE editor … Here’s what I’ve got: function filter_ptags_on_images($content) { return ...
0
votes
2answers
137 views

Make videos output as iframes not links

is there any way to change the default output when inserting a video into tinyMCE with Wordpress' default media manager. Currently it inserts it as a link, would it be possible to input it into the ...
0
votes
1answer
369 views

Custom characters of tinymce editor are saved as question mark

I have integrated tinymce editor of wordpress to my custom plugin. I save the data entered in to Database via ajax like this: encodeURIComponent('<?php echo ...
0
votes
1answer
81 views

TinyMCE buttons broken

For some reason my TinyMCE buttons are completely misaligned and have the wrong background-position (See image below): I have attempted to download a fresh install of Wordpress 3.5 and replaced my ...
0
votes
2answers
1k views

enable TinyMCE for comment forms

Is there any way in Wordpress to use a richt-text-editor (preferable the build in TinyMCE) on the comment form textarea in the frontend? I had such a feature in earlier versions, using the plugin ...
6
votes
1answer
872 views

Hide “Add media”, html editor from tinymce

I have a custom post type which supports editor. (WordPress ver. 3.5) I want to customize the editor for it. Make it readonly Hide "Add Media" button Hide HTML editor Remove status bar showing word ...
3
votes
2answers
1k 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 ...
4
votes
1answer
1k views

Enqueue Script After TinyMCE initialized

I am making a small live preview area inside a meta box using jquery where i need to get content from tinymce editor. But it seem my script loads before tinymce, this returns null when i try to get ...