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
0answers
17 views

tinyMCE 4.0 custom button onclick no longer working

I am trying to update one of my WordPress plugins where I create a tinyMCE button and open up a thickbox on click. I've just tried switching over to a basic example for testing, and can't get this to ...
1
vote
0answers
17 views

TinyMCE strips breaks inside editor

the posts are shown correctly in the frontend. But when i go to edit, the content inside tinyMCE is without breaks ?! So i have to copy my content from frontend and paste it to the editor every time i ...
1
vote
1answer
278 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 ...
1
vote
2answers
75 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 ...
1
vote
0answers
108 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 ...
1
vote
1answer
50 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' ...
1
vote
0answers
119 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 ...
1
vote
1answer
101 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 ...
1
vote
3answers
170 views

How can I control the HTML output of my post?

As you already know, WordPress manipulates posts, even if you write everything in Text mode. (replacing line breaks with \r\n 's , converting single quotes into double quotes etc.) I know this is ...
1
vote
0answers
72 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 ...
1
vote
1answer
194 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 ...
1
vote
3answers
811 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
188 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 ...
1
vote
1answer
650 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 ...
1
vote
1answer
145 views

wp_editor not modify html tags of initial content

How can i set the tinyMCE editor in wp_editor to not modify/replace the html tags of the initial content ? I'm loading html content with tags (i know that they are deprecated but i need them) and ...
1
vote
0answers
285 views

Tinymce and uploading local pictures

I would like to extend the capabilities of the wordpress editor while keeping the option of uploading local pictures (in the simplest way possible:upload => insert). I found a plugin which seems to ...
1
vote
0answers
113 views

HTML Excerpt causing issues [closed]

Hi I have this code to give me an HTML version of the excerpt box on the edit post screen, however when I'm in the HTML tab of the editor and switch to Visual I only see a blank page. Reloading the ...
1
vote
0answers
100 views

Hook into existing tinyMCE button

Is there a way to hook into an existing tinyMCE editor button? I have a plugin that currently has a button on the editor and it shows a popup-box when clicked. This box has tabs inside. I would like ...
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 ...
1
vote
2answers
714 views

Placing <div> tags on wordpress visual editor using shortcodes

Hello I need to have the following code on a specific page: <div class="searchbar" > <div class="searchbar-inner" > search <input type="text" id="search" ...
1
vote
1answer
907 views

TinyMCE buttons that launch Ajax-generated forms

if i follow the tutorials on how to add tinyMCE buttons for shortcodes ( for instance: http://www.garyc40.com/2010/03/how-to-make-shortcodes-user-friendly/ ) if i create a button that launches a ...
1
vote
1answer
207 views

in network setup super admin has the tinyMCE buttons and the regular admin has not

in mine network setup, the super admin has the ability to see the tinyMCE editing buttons in the option page, but when i switch to a regular adimin, i can see only the HTML editing buttons (the "rich ...
1
vote
1answer
256 views

Inserting code to HTML view from a pop up initiated from visual view

I am trying to insert html into the HTML view.What i have done is to have tinymce advanced(a wordpress plugin) button that throws a popup and in it is all the necessary things to insert the html.The ...
1
vote
3answers
356 views

customize tiny MCE blockqute

Hi we all know by default tiny MCE's blockquote generates this <blockquote> content here </blockquote> I am styling this via CSS : the css im using : blockquote { border: none; ...
0
votes
2answers
1k 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
265 views

How can I make the page editor trust me?

I want two images to appear side-by-side. However, WordPress inserts a line-break between the elements, even if I use the HTML editor rather than the Visual editor. How can I make the editor trust ...
0
votes
2answers
983 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 ...
0
votes
1answer
160 views

Tiny MCE doesn't look anything like my blog

I'd like my blog to actually look like what I type in WYSIWYG mode but it's not even close. How do I fix it? www.halseyschools.com
0
votes
1answer
65 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 ...
0
votes
2answers
241 views

Why is the media upload button not in the main toolbar & can it be placed there instead?

Is there a good reason why the wp media upload button is not placed within the main edit toolbar, and can we put it there instead of floating above??
0
votes
2answers
678 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 ...
0
votes
1answer
51 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
1answer
97 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 ...
0
votes
1answer
567 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
1answer
562 views

Pass data back to TinyMCE from Thickbox

I've added a shortcode button in the TinyMCE editor in the page/post pages that opens up a Thickbox form. The button is working; it opens up the thickbox form like it should. However my stumbling ...
0
votes
2answers
391 views

Bridging TinyMCE js and Wordpress PHP?

I'm updating my wordpress plugin to use a custom TinyMCE button. From inside the TinyMCE button javascript, I'd like to interact with wordpress data--ie set custom post options inside the plugin ...
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 ...
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
2answers
366 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; ...
0
votes
2answers
462 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 ...
0
votes
1answer
861 views

How to force <p> insertion in editor

EDIT 2 The following edit has some mis-information, see the selected answer and comments. EDIT I am a fool. The editor was in fact adding <p> tags as expected. I was using a combination of ...
0
votes
1answer
1k views

TinyMCE in a div / textarea on frontend?

I have a post on my frontpage and I want to add the TinyMCE editor to it and could not make it work. I've tried these guides without any luck ...
0
votes
1answer
441 views

Insert Rich Text Editor in theme?

I'm building a custom front end form for my theme and I'd like to use the Wordpress TinyMCE Rich Text Editor for it. Is there an easy way to invoke it? Thanks!
0
votes
1answer
1k views

Restrict file uploads by extension?

Is there a way in WordPress 3.1 to restrict allowed file uploads by extension (images only) and file size? Bonus question: Can I limit users to only be able view files they have uploaded themselves?
0
votes
2answers
640 views

Wordpress no longer holding post formatting

When creating a new post, by entering either manually or pasting from another document, TinyMCE (the default WordPress editor) does not seem to hold any type of formatting. For instance I create a two ...
0
votes
2answers
420 views

Moving/dragging a metabox removes TinyMCE's content

I added a TinyMCE editor to my plugin settings page, but once I move (drag) the metabox, editor's content get lost. (the TinyMCE editor is completely not editable until refresh) Here is how I added ...
0
votes
3answers
1k views

Embed iFrame in WordPress 3.0.1

I need to embed an iFrame into a post and it appears that tinyMCE or something is stripping it out when I go from HTML to Visual view while editing a post. I've found instructions for adding valid ...
0
votes
1answer
2k views

How to add 'Insert HTML Table' button to TinyMCE in admin?

I am trying to figure out how to change the default buttons on the TinyMCE editor in the Wordpress admin. Specifically, I would like to provide an 'insert table' button. How do I do that?
0
votes
1answer
34 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 ...