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
0answers
6 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 ...
0
votes
1answer
28 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 ...
1
vote
2answers
77 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 ...
1
vote
1answer
60 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
19 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?
0
votes
0answers
19 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
15 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
15 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
12 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
12 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
15 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
23 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
17 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
23 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({ ...
1
vote
0answers
11 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', ...
0
votes
0answers
14 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.
0
votes
0answers
13 views

How to reference tinymce body in my script

I want to add some custom behaviour to my tinymce body, but I can't reference it in my script. this is how I load my scripts inside my wp plugin. $this->loader->add_filter( ...
0
votes
0answers
25 views

Selectively remove empty line after line change

In WP post editor, how can I change lines without adding an empty line? I try to post this One line Second line third line But it always shows like this One line Second line Third line PS: I ...
0
votes
0answers
29 views

use HTML in TinyMCE Editor

i want to use HTML (schema.org) in my TinyMCE Editor. I use the following script in my custom.php // Prevent TinyMCE from stripping out schema.org metadata function schema_TinyMCE_init($in) { /** ...
0
votes
0answers
14 views

tinymce: how to replace stuff with stuff *permanently* after inserting

really need some help. Basically I need the following. If you enter a specific type if URL to the tinyMCE Post Editor, it shall be instantly replaced with other stuff. Mainly because this requires an ...
0
votes
0answers
15 views

tinymce wpview instance URL

I want some special URL types to be transformed in embedded content objects in the tiny MCE editor. I registered some them like that add_action('init', function() { ... ...
1
vote
1answer
56 views

Can't remove &nbsp; generated by editor from database

I have found out that when i save post, there are "kind of" non breaking space saved, sometimes. I don't mind "regular  ". This can appear anywhere in the text. In the editor, they are obviously ...
0
votes
0answers
21 views

TinyMCE Advanced config add extra list style

I want to add an extra list style to the dropdown in the TinyMCE editor. Is there a way I can do this? I've also added the plugin Advanced TinyMCE Config. I've tried adding the following (classes ...
0
votes
0answers
19 views

TinyMCE Button with Dynamic Content

Not sure if this is going to be deemed as off topic, but here goes... My WP plugin adds a new button to the TinyMCE editor. All works fine, my button appears and behaves as expected rendering all of ...
0
votes
1answer
44 views

How to dynamically generate wordpress editor on frontend?

I want to initialize the wordpress editor dynamically on frontend. I have tried to include the following scripts: wp_enqueue_script('editor'); wp_enqueue_script('media-upload'); ...
1
vote
1answer
41 views

TinyMCE 4 remove/add attributes for all images

i want to search for all images that have been add to TinyMCE 4 and: Remove the height attribute from the images Add style="max-width: 100%;" to all images what is the best way to do this tasks? ...
0
votes
1answer
75 views

Why exactly does Wordpress use p tags, not divs?

Something I find somewhat odd is that by default, Wordpress always seems to make paragraphs, not divs when you press enter. At first this may seem like the common way to make paragraphs, but it's ...
0
votes
0answers
23 views

How to correctly enble tinymce and change style on frontend?

I'm using bbpress on a dark theme http://azerothshard.ga/forums/ I've enabled tinymce in bbpress using guide from its official codex but it uses the default skin that is white and doesn't fit my ...
0
votes
0answers
42 views

Caption description in tinyMCE editor

I posted this on the hacks forum of Wordpress a week ago but it seems no one is able to help me there. I'm currently customizing the captions for a client, and I have two separate problems that I ...
1
vote
2answers
71 views

Detecting when TinyMCE is “ready”

I'm trying to add some custom JS functionality to the default "post" editing screen that depends upon TinyMCE being instantiated and ready to rock. If I try to make the changes before TinyMCE is set ...
0
votes
1answer
26 views

TinyMCE adds a &nbsp; after a HR

I noticed that TinyMCE adds a non-breaking space after a horizontal rule element, this isn't required and adds additional space to my layout if there isn't any content after the <hr/> I've ...
0
votes
1answer
32 views

DOM reference to TinyMCE editor element (button)

I guess this should be a very simple question, but I'm not too familiar with overall functioning of Wordpress / TinyMCE so I'm struggling: I've added a custom button to TinyMCE and need some kind of ...
0
votes
0answers
52 views

Making a custom widget that includes a tinymce and works in Site Origin Page Builder

For a client I'm using Site Origins Page Builder plugin. It enables the client to make rich layouts for each page by dragging and dropping widgets. Site Origin widgets that require a WYSIWYG-editor ...
1
vote
0answers
21 views

TinyMCE style formats for different post types

I'm making a website with a "portfolio" post type and I need different style formats for that post type. I know how I can add style formats for all post in functions.php: add_filter( ...
1
vote
1answer
26 views

How to set custom editor style when editing the homepage?

I would like to get html class names same way get_body_class() works but on the admin side. I would like to change body class names of TinyMCEs iFrame element to allow specified editor-styles.css ...
0
votes
0answers
23 views

How to disable TinyMCE styleselect multiselect?

I have made successfully a styleselect dropdown to TinyMCE. However now it is possible to select multiple styles for one text. They can be disabled by clicking the style again, but I find this can be ...
0
votes
1answer
40 views

How do I hide tinymce within the edit screen of a particular page

I have a page. The page is assigned a unique page template. The template will use a custom loop. This loop will not call the content of the particular page. I'd like to hide tinymce from the user. ...
0
votes
0answers
24 views

How to remove “justifyfull” in TinyMCE

In my functions.php I have following: function myplugin_tinymce_buttons_2($buttons) { $remove = array('formatselect', 'justifyfull', 'forecolor'); return array_diff($buttons,$remove); } ...
0
votes
0answers
69 views

jQuery get elements inside tinyMCE WYSIWYG field

How can I access elements inside a tinyMCE WYSIWYG field with jQuery/Javascript? My case: I have a Wordpress site using Advanced Custom Fields and several WYSIWYG-fields. I want to be able to get ...
0
votes
0answers
41 views

tinymce Inline Editing Mode

Can we use inline mode with wordpress tinymce. I tried what's shown in the tinymce documentation here, but doesn't seem to work. Is wordpress remove that feature? Live example from the doc.
0
votes
0answers
57 views

How to remove tinymce button created by plugin in specific page

I'm using buddypress docs plugin. In the front end the buddypress docs shows tinymce editor with buttons created by plugins too (In my case Wp-filebase plugin button). I don't want to show wp-filebase ...
0
votes
0answers
32 views

Adding a colorbutton in tinymce dialog with current api

I'm trying to add a colorbutton in a tinymce dialog box, which i was able to do with the help of using this stackoverflow question here: ...
0
votes
0answers
22 views

Adding black studio tinymce to custom post type

I created new simple post type like this and everything works fine, except that there's no black studio tinymce editor. Some how there's few post types and there's this editor. Where's my problem? ...
1
vote
0answers
27 views

Tinymce shortcodes within shortcode contents

I am using wp.mce.views.register to create a simple view for my shortcode in the tinymce editor, this works fine but i am looking for a way to have "nested" shortcodes e.g. [column_3] [info_box] ...
0
votes
0answers
24 views

Resetting TinyMCE custom formatting

I'm adding custom styles in a new dropdown to TinyMCE as per this page and this answer https://codex.wordpress.org/TinyMCE_Custom_Styles TinyMCE: adding CSS to format dropdown My question is - is ...
0
votes
0answers
64 views

Replace TinyMCE with Custom Built Editor

I am looking to build a custom wiziwig, and replace wordpress's TinyMCE all together. I figured out how to add to the TinyMCE editor, but thats not what im looking for. Does anyone have any references ...
1
vote
1answer
118 views

Visual Editor is blank - 404 for plugin js

My client's visual editor is not working. I'm seeing a ton of JS errors in the console. All 404 errors for plugin files related to tiny_mce. Here's a couple: ...
2
votes
0answers
122 views

Visual Editor freezing on text highlight since 4.3

Ever since I updated my website to 4.3 my visual editor is freezing every time I try to highlight a piece of text, or even place my cursor someplace random. This only seems to be happening on the text ...
0
votes
1answer
147 views

Remove tinyMCE from admin and replace with textarea

I have created a plugin wherein I have a custom post type. I am using post_content for some simple text. I do not need to offer any fancy editing or insertion of data for this field, so I looked for a ...
3
votes
1answer
59 views

Detect a focus on wp_editor

I wan't to detect/callback when a wp_editor(..) output text-area/content-editable is focus. Quite a simple question that I could not find anywhere. <div class="compose-body"> <?php ...