Tagged Questions

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
204 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 ...
8
votes
5answers
1k views

How to add custom CSS (theme option) to TinyMCE?

I'm trying to add custom CSS (set via theme options) to the TinyMCE visual editor in WordPress. On the front end, the theme generates this CSS and outputs it on the wp_head hook. The problem I'm ...
1
vote
2answers
473 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 ...
0
votes
1answer
488 views

Cite-Tag for blockquotes

I want to have a cite underneath my blockquote, that has a certain style. "Blockquotes are an essential part of a fancy website." – Cite The markup ...
0
votes
1answer
92 views

Send data to Editor before saving the post

I have created a meta field in the new post page. When I add some content in the meta field, I store it in a hidden textarea. When a post is saved, I want to clear all content of the editor and copy ...
-1
votes
1answer
175 views

Using TinyMCE fiddle for node filter to add id attribute to anchors

I'd like to edit the code of the anchor-maker in TineMCE so it will paste into the code the following line: <a name="#ANCHOR" id="#ANCHOR"> instead of: <a name="#ANCHOR"> Where do I find a ...
3
votes
6answers
3k views

How to force TinyMCE in WordPress to replace newlines with <br> tags and not with <p>&nbsp;</p>

TinyMCE editor inserts <p>&nbsp;</p> instead of <br> tags when I press enter in my text for a new line. How to force TinyMCE in WP to replace newlines with <br> and not ...
1
vote
1answer
773 views

TinyMCE - Show Advanced Options (2nd Row) By Default

So I've customized my tinyMCE a bit to add some buttons and rearrange some things: function myformatTinyMCE($in) { ...
0
votes
0answers
29 views

wordpress is adding tags and messing with layout

i've searched and not found an answer specific to what i'm doing i'm hand coding a page of thumbnails with simple html and css. i'm writing it in a text editor so it's easier on my eyes and then ...
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 ...
1
vote
1answer
123 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
203 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
1answer
86 views

Adding html format on tinymce visual editor

Need to add more html format tag to TinyMCE Editor as visualized below Using Wordpress 3.6.1 Can't found any good example/guide for these modification. Another solution welcome. Thanks & ...
0
votes
1answer
292 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 ...
12
votes
2answers
1k views

Switch between Visual and HTML tab freely

So this question has been raised many times under different flags, however I'd like to present a unified thread for an ultimate solution to this issue. In WordPress, by default, when switching back ...
2
votes
1answer
91 views

all tincymce's switch when updating page after changing from html to text in custom metabox

I have a custom metabox which uses wp_editor and when i switch to text editor instead of visual the main content tinymce also changes to text view when i update. I was wondering am i doing something ...
1
vote
1answer
145 views

Prevent the Editor From Moving My &nbsp;

I know variations on this have been asked all over the WordPress world, but I can't seem to find what I'm looking for. I have HTML that looks like this: <a ...
3
votes
0answers
128 views

Bridge Wordpress Media API with custom tinyMCE plugin [closed]

In my tinyMCE plugin, I would like to be able to call the Wordpress Media manager introduced in WP 3.5. I am currently working on a plugin that needs to fetch images from the library. I know we can ...
2
votes
2answers
3k views

Remove hidden formatting when user paste text from MS Word into TinyMCE

Around a fifth of post submissions that I receive contains ridiculous amounts of hidden formatting. For example, here is some of it from a recent post: <!--[if gte mso 9]><xml> ...
0
votes
2answers
130 views

WP Alchemy - stripping my paragraph tags from textarea metaboxes

I cant seem to get my custom Metaboxes to display paragraphs. Here is my code: page.php <?php // Custom Excerpt $custom_metabox = get_post_meta($post->ID,'_custom_meta',TRUE); ...
0
votes
1answer
637 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
335 views

WordPress TinyMCE Add Button To The Full Screen Mode Editor

I've created a button (named 'quote') in WordPress post editor (TinyMCE) normal mode, and I've been successful in adding some functionality to that button. The question is how can I make this button ...
1
vote
1answer
111 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
2answers
183 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 ...
0
votes
1answer
254 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
1answer
1k views

Removing unneccessary p-tags (Not every p)

I removed wpautop from my theme: function disable_linebreaks($content) { remove_filter ('the_content','wpautop'); return $content; } add_filter('the_content','disable_linebreaks',1); ...
2
votes
1answer
877 views

Is it possible to create nested lists in the WYSIWYG editor?

I'm looking to set up WP for a user that does not know or care about HTML, so I need everything to work in the WYSIWYG editor. She'll be working on posts that have lots of nested bullet lists, but I ...
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
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, ...
7
votes
1answer
920 views

How to load wp_editor via AJAX

Does anyone know how o load wp_editor via AJAX in WordPress? My markup and editor is getting loaded properly but editor controls are not getting loaded properly, it may be because Javascript is not ...
2
votes
2answers
234 views

wordpress with many custom styled static pages

I am creating wordpress that constists of many many custom styled static pages. Some has tables, some has text+iages etc. - so each page has almost unique style with some commonalityes, of course. So ...
0
votes
2answers
165 views

WYSIWYG with HTML source?

I'm trying to switch from Drupal to WordPress, and I have lots of articles written in Drupal's WYSIWYG Editors, and stored like <p>Hi, this is an article</p><p><img ...
0
votes
2answers
777 views

Change the background of the TinyMCE editor with available WP arguments

I'm using an instance of the TinyMCE editor in a plugin form, and I need for the editor to be highlighted (light red background) if the field is not correctly filled in. I can add a custom class ...
0
votes
1answer
218 views

help on wp_editor via ajax load [duplicate]

So I have been spending hours trying to figure out how to make the wp_editor() work on an ajax generated content. I bumped into this post: Load tinyMCE / wp_editor() via AJAX and tried the solution ...
1
vote
1answer
273 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
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
52 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
774 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
67 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
135 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
460 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
206 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
290 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
704 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
149 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
354 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
330 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
940 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 ...