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

7
votes
1answer
100 views

Add self-closing shortcode button to TinyMCE in WP 4.6

I'm familiar with creating self-closing shortcodes like: // shortcode function wpse_shortcode_example( $wpse_atts ) { // Attributes $wpse_atts = shortcode_atts( array( '...
-1
votes
0answers
14 views

TinyMCE Error - Text displaying in a single column

Today, I encountered an odd error with TinyMCE after a migration of WordPress from server to server. When I went back to edit a post, the Tiny MCE editor placed each character that I typed on to one ...
0
votes
0answers
8 views

Tinymce style in Wordpress

I found this code which adds multiple editor boxes which use tinymce to the admin area. I'm trying to find out if it can load with the Wordpress Tinymce styling already in place. Currently it loads ...
1
vote
0answers
15 views

Enable Visual Editor In Comments On CPT Edit Page

I'm trying to adjust the comment form on a custom post type in the admin edit page only. The end result I'm looking for is: Allow switching between Visual and Text editor through the tabs on the top ...
0
votes
2answers
31 views

Open Insert/edit link popup

I'm using visual editor on front end. When clicking the Add/insert link button, it displays following By clicking Link options icon, the following popup appears Is it possible to directly open ...
0
votes
0answers
21 views

Adding custom styles to a list in TinyMCE

I am currently using this code to add custom styles within TinyMCE: add_action("wp_print_scripts", "cspm_remove_script_files", 100); function wpb_mce_buttons_2($buttons) { array_unshift($buttons, '...
1
vote
1answer
59 views

Open link in a new tab checked by default when adding a new link in visual post editor

When adding a link in the WP visual post editor you have to click the settings after adding the link and then click the Open link in a new tab to have it add a link with a target in a new window/tab. ...
0
votes
1answer
30 views

tiny_mce_before_init: 'exact' => true has no effect

For a custom theme, the editors want to be able to select three different font sizes in the post editor. I thought about using a standard font size plus defining two extra classes: <p class="...
1
vote
0answers
32 views

TinyMCE custom dialog with selectbox not working

For a theme I add a custom menu to Wordpress' TinyMCE using ed.addButton. Now some of those menu points have more or less elaborate options, so I thought I'd use the custom dialog function of TinyMCE ...
0
votes
0answers
38 views

Highlighting HTML code entered in the text editor

I have a need to have both "rendered" html in a post and "raw" or highlighted html in a Wordpress 4.5.2 post or page. I have solved the former by simply editing in the text editor, placing my code in ...
2
votes
0answers
44 views

Dynamically add styles to WP TinyMCE editor

I want to add custom styles to Wordpress using dynamic arrays. My question is how can I add the two arrays to the style_formats array within the 'my_mce_before_init_insert_formats' function ...
0
votes
1answer
28 views

How to add custom 'layout' buttons to wordpress editor?

I'd like to modify the editor by adding some 'layout' buttons. Ideally, I'd like to add the ability to add some html 'partial' by simply clicking a button. This is to help my client to create pre-...
1
vote
2answers
48 views

wp_editor in widget breaks after save (no buttons and visual tab broken)

My goal is to get wp_editor working in a simple widget which the admin can use to add text content on an admin options page. Here we go in wp-admin/widgets.php everything looks sooo good right. ...
2
votes
1answer
43 views

Is it possible to add a repeater field to TinyMCE's option window?

I am trying to create an accordion shortcode builder for WordPress using TinyMCE's editor.addCommand / windowManager.open function. I'd like to be able to add a repeatable region within the popup ...
5
votes
0answers
97 views

Why did multiple line breaks stop working in text editor?

# Adds ability to add break tags on posts remove_filter( 'the_content', 'wpautop' ); remove_filter( 'the_excerpt', 'wpautop' ); add_filter( 'the_content', 'nl2br' ); add_filter( 'the_excerpt', 'nl2br'...
0
votes
1answer
93 views

WordPress 4.5 Inline Link Toolbar not working on custom wp_editor instance

I am having an issue with initializing the inline link toolbar in a custom instance of the WP editor. The instance is added in a dynamically loaded modal using the wp_editor function and some ...
1
vote
1answer
75 views

TinyMCE Editor change underline button behavior - u tag instead of span text-decoration underline

As above. I want to change the WordPress Edtior TinyMCE behavior when I click the underline button I want the TinyMCE to wrap my selection with <u></u> tags. Now, I know that the u tag was ...
1
vote
0answers
54 views

Tinymce.js editor in Chrome?

For 3+ years I had a custom styles menu in my Wordpress editor that I added in functions.php which worked great. Today, I went in to edit a new post, and not only doesn't my menu work, but I cannot ...
0
votes
0answers
13 views

Custom tinyMCE control wrapping wrong

I'm adding a custom button to my visual editor, so that the client doesn't have to manually input shortcode. It's a simple column one. So when you select your text, and click on it, it wraps the ...
0
votes
0answers
52 views

Can I add category list in wordpress TinyMCE custom button

I want to create a custom post type gallery plugin.I already create shortcode and create TinyMCE button But I can't add Taxonomies list in TinyMCE-button.js file. how can I add this? my code is php ...
22
votes
1answer
366 views

Adding Custom Text Patterns in the WP 4.5 Visual Editor

4.5 is out and with it new Text Patterns. I would like to know how to go about adding my own custom patterns. Taking a look at wp-includes/js/tinymce/plugins/wptextpattern/plugin.js it seems pretty ...
0
votes
0answers
22 views

Grabbing post content in real time with javascript

I am working on a plugin that adds a metabox on the create/edit post page, in that metabox I want a dropdown with all the anchor texts for the a tags used in the post. I haven't done the parser to ...
2
votes
1answer
210 views

How do i disable/disallow <script> and <iframe> tags in TinyMCE?

A client of mine has just had 200 posts injected by malicious scripts and iframes. The website is now all cleared. They were put in the content by the user updating the post/page as my clients ...
0
votes
0answers
51 views

Stop TinyMCE removing empty block level elements

I'm currently trying to write a plugin for TinyMCE that takes advantage of bootstrap's grid system. It's going well for the most part, but I'm having a problem with the editor removing columns when ...
0
votes
0answers
79 views

Adding a wp_editor to a modal, edit gallery button not displaying?

I've initialized a wp_editor via ajax with quick tags within a wp-media modal, and everything seems to be working great. However If I try and edit a gallery within the modal by clicking it nothing ...
0
votes
0answers
55 views

Create a tinyMCE custom button that opens a Bootstrap Modal window instead of the tinyMCE default

I have successfully created a custom button that opens a pop-up which works by opening the native tinyMCE modal window. Following the instructions in the "Adding popup after clicking" section of ...
1
vote
2answers
90 views

Is there a way to remove the default css from TinyMCE?

I'm working on getting the editor to look more like the front end by adding extra CSS to the TinyMCE rich text editor. WordPress adds /wp-includes/js/tinymce/skins/lightgray/content.min.css and /wp-...
0
votes
1answer
85 views

How to modify VisualComposer's TinyMCE editor only for a specific shortcode

I spent a lot of time looking for how to modify the buttons of a TinyMCE editor for a Visual Composer plugin that I'm developing. My requirement was to modify which buttons are shown, but only in the ...
0
votes
0answers
17 views

How to select many posts from tinyMCE PluginManager

I am trying to create a plugin that allows authors to include (inline) recommended posts. I've created a tinyMCE button and I get the form where the user is supposed to select posts to include (max 5)....
1
vote
1answer
79 views

accessing wp.media api from a tinymce plugin

I'm trying to create a tinymce plugin that generates a shortcode containing two image ids: [image-fade old="xx" new="yy"] I would like to let users select images directly from the media selector ...
0
votes
0answers
58 views

wp_editor link to existing content removal

I'm using the wp_editor() on the frontend of my website which will be accessible to users. When I click the insert/edit link option, there is a toggle which says: Link to existing content Which ...
0
votes
1answer
49 views

wp_editor customization

I've been stuck in a simple issue for the last couple of hours: I'm developing a website in which I use several wp_editor instances, all with custom buttons and styles. This is very simple to achieve ...
0
votes
0answers
40 views

TinyMCE custom button on post-new.php screen

Iam building a small slideshow plugin. For this I registered a new post-type which is called "prfx_slide". And also set-up a shortcode function so that I can use the slider as a shortcode. With the ...
0
votes
0answers
27 views

Bake-in TinyMCE Advanced into theme?

Looking to bake-in the TinyMCE Advanced editor into my theme automatically without using the plugin. Can this be done or is this outside of the scope of what a hook can do within WordPress? I have no ...
1
vote
0answers
86 views

Custom styles dropdown in TinyMCE editor - not working with headings

I've added a custom style dropdown to the TinyMCE editor, but cannot get it to work with headings (h1, h2, etc..). I highlight plain text, select the style from the formats dropdown, and the text does ...
1
vote
1answer
45 views

How to disable formatting

Everytime I copy something, Wordpress will format the content like it was in that text. For example if I copy a link from Wikipedia, Wordpress will format that word to be bold, blue and with underline....
1
vote
2answers
379 views

Insert dynamic listbox options in Tinymce popup editor

I am trying to create dynamic listbox values but getting this error in console: Uncaught TypeError: Cannot assign to read only property 'active' of [ Here's my code( pasting only the code for listbox ...
2
votes
1answer
351 views

TinyMCE editor is breaking my beautiful HTML

This is pretty much an exact duplicate of: How to make Wordpress and TinyMCE accept <a> tags wrapping block-level elements as allowed in HTML5? and HTML5, WordPress and Tiny MCE issue - wrapping ...
0
votes
0answers
43 views

How to have html in TinyMce “Text” tab properly indented and highlighted

Is there a way to have the "Text" tab of tinyMce display a properly indented and highlighted/formatted HTML? Is there any solution to achieve this?
1
vote
0answers
184 views

Setting TinyMCE Content in wp_editor

I am currently coding on front-end editing in wordpress. The outcome should be evernote-like editing using wordpress posts. The Wordpress database stores markup without paragraphs and adds them on ...
0
votes
0answers
47 views

Hook to the wp_editor? e.g. read content on each change of the wp_editor

i want to call a javascript function that logs the content of the tinymce? editor of wordpress that gets inserted like this wp_editor($someContent, "someId", $wp_editor_settings); the problem is ...
0
votes
0answers
51 views

How to add popup window on visual editor buttons

How to open a popup window on button click in visual editor ? I am creating a WP plugin that allows user to select product from dropdown menu from popup window and then creates shortcode and add into ...
0
votes
0answers
19 views

get_option() is undefined in TinymceWindowManager

I have added button to tinymce editor, which opens Popup using TinyMCE window manager and popup file is sbb-pop.php. I want to show settings using get_option() on popup window. But it throws error ...
1
vote
0answers
16 views

How To Add buttons to the toolbar which appears in TinyMce when you click over images

Using Wordpress 4.4 I need to add a custom button to manipulate images. The button should appear when the user clicks on an image, next to other buttons. An example of the other buttons:
0
votes
0answers
33 views

Get Custom Post Type posts on normal edit-posts and pass to TinyMCE

I am following a tutorial for adding a dropdown list in tinyMCE editor. In the end I would like to have a Select list similar like it is in this image , but populated by post titles from Custom Post ...
0
votes
0answers
36 views

How to add justify in tinymce

I have just upgraded wordpress version 4.2.5 to Wordpress 4.4. I have used another plugin for tinymce-advance 2.5.8 but it does not work for me. I want to add another button too in tinymce editor like ...
0
votes
0answers
30 views

How to add JS files to WP tiny Mice Popup window

I've created Plugin that add button on tinymice editor and When you click on button it opens pupup. For Popup I've created one php file popup.php. This file will be loaded as popup frame when user ...
0
votes
0answers
50 views

Adding tab to custom TinyMCE plugin

I am creating a custom button for the wp posts editor by following this documentation. I replaced the addCommand callback with something like this: ed.windowManager.open({ title:...
1
vote
0answers
13 views

wp_editor: How to load wp_editor on demand using jQuery? [duplicate]

I am trying to load wp_editor on demand using jquery/javascript. Somehow I got success using following code but it does not save changed data in the element. tinyMCE.execCommand('mceAddEditor', ...
1
vote
0answers
19 views

wordpress 4.4 upgrade visual editor bullets select for not selected elements

Please check attachment for reference image and help me to fix it please.