Questions tagged [tinymce]

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.

Filter by
Sorted by
Tagged with
1 vote
1 answer
487 views

Prevent the Editor From Moving My  

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 name="title-slug">&nbsp;</a>...
Dominic P's user avatar
  • 685
3 votes
0 answers
186 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 ...
Orion's user avatar
  • 31
4 votes
2 answers
11k 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> <w:...
Christine Cooper's user avatar
  • 8,778
0 votes
2 answers
275 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); if($...
leannekera's user avatar
5 votes
1 answer
5k 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 ...
Phil Kurth's user avatar
0 votes
1 answer
795 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 ...
Omar Tariq's user avatar
1 vote
1 answer
278 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 ...
kel's user avatar
  • 429
1 vote
3 answers
941 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 ...
somdow's user avatar
  • 265
0 votes
1 answer
632 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 ...
user36316's user avatar
1 vote
1 answer
5k 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); ...
Sebastian Starke's user avatar
4 votes
1 answer
8k 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 ...
Brendan's user avatar
  • 193
3 votes
1 answer
4k 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 ...
dcp3450's user avatar
  • 455
0 votes
1 answer
2k 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, ...
MSolution's user avatar
17 votes
2 answers
5k 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 ...
user17108's user avatar
  • 181
2 votes
2 answers
860 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 ...
renathy's user avatar
  • 213
0 votes
2 answers
993 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 bla='bla'>&...
jeff's user avatar
  • 191
0 votes
2 answers
3k 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 '...
David Gard's user avatar
  • 3,300
0 votes
1 answer
648 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 ...
Godwinh's user avatar
  • 176
2 votes
1 answer
1k 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 haven'...
mrwweb's user avatar
  • 10.2k
2 votes
1 answer
16k 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 ...
David Gard's user avatar
  • 3,300
0 votes
1 answer
2k views

How to use WP switchEditors.switchto(this) JS function in your own script?

I have a tab switching theme that lets the user choose 3 editing modes when adding new pages (HTML and Visual- these are WP defaults and the new Syntax mode using Code Mirror). I have issues when ...
Emerson Maningo's user avatar
0 votes
1 answer
101 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 text ...
Emerson Maningo's user avatar
8 votes
3 answers
10k 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 ) { $...
andy's user avatar
  • 2,349
0 votes
1 answer
192 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 ...
PrivateUser's user avatar
  • 3,459
0 votes
1 answer
394 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 ...
Terence's user avatar
1 vote
2 answers
3k 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: Rather ...
ptimson's user avatar
  • 243
1 vote
2 answers
2k 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 ...
Dognose's user avatar
  • 11
0 votes
1 answer
244 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 ...
Monogot's user avatar
  • 55
0 votes
1 answer
671 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 ...
NoBugs's user avatar
  • 452
1 vote
1 answer
3k views

Convert textarea with wp_editor

I have a custom tabbed menu which has some input fields that works properly. I followed this tutorial: http://wp.tutsplus.com/tutorials/the-complete-guide-to-the-wordpress-settings-api-part-8-...
Luismin's user avatar
  • 23
0 votes
0 answers
761 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 editor....
user avatar
1 vote
1 answer
826 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 ...
waspinator's user avatar
4 votes
1 answer
3k 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 class="some_class"...
Xav's user avatar
  • 399
1 vote
4 answers
12k views

Adding rich text editor to my plugin

I'm trying to add a rich text editor to my own plugin. So I googled it first of course and I found several answers on dev4press and Stack Overflow. This code displays nothing so I tried another ...
Ronny Rook's user avatar
1 vote
0 answers
320 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 triple-...
Scott B's user avatar
  • 5,666
0 votes
1 answer
176 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 ...
testing's user avatar
  • 651
3 votes
1 answer
658 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 ...
N2Mystic's user avatar
  • 3,183
6 votes
1 answer
600 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 ...
Simon Gibbs's user avatar
-2 votes
1 answer
1k 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, '...
TimeToGiveUpPcForever's user avatar
0 votes
1 answer
293 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 ...
kontur's user avatar
  • 142
2 votes
5 answers
4k 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 ...
frabiacca's user avatar
  • 257
-1 votes
1 answer
239 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. ...
terrytek's user avatar
0 votes
1 answer
77 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 ...
abrosis's user avatar
  • 103
0 votes
2 answers
385 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] <!--?...
urok93's user avatar
  • 4,014
4 votes
1 answer
245 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 ...
Ryan Schram's user avatar
5 votes
3 answers
1k 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 ...
Aron Woost's user avatar
0 votes
3 answers
1k 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 post....
ItsGeorge's user avatar
  • 133
0 votes
1 answer
429 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; $in['...
Brett's user avatar
  • 414
2 votes
1 answer
1k 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 ...
Matt's user avatar
  • 155
2 votes
1 answer
2k 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 ...
N2Mystic's user avatar
  • 3,183

1
8 9
10
11 12
14