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
32 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
40 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
54 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
17 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
25 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
282 views

Can't remove   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
58 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
71 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 ...
1
vote
1answer
100 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'); wp_enqueue_script('...
1
vote
1answer
135 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
166 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
33 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
91 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 can'...
1
vote
2answers
263 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
71 views

TinyMCE adds a   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
62 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 ...
1
vote
0answers
142 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
26 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
35 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
49 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
63 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
57 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
116 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
87 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
110 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 ...
1
vote
0answers
40 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: http://stackoverflow.com/questions/23511566/adding-a-...
0
votes
0answers
26 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
31 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
31 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
101 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
180 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: http://www.livebeautifull.com/wp-content/...
2
votes
0answers
178 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
351 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
109 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 $...
0
votes
0answers
70 views

Textarea - TinyMCE

Can you help me please? I downloaded the plugin wpDiscuz and I need to "textarea" embed TinyMCE. part of the code: <textarea <?php echo $wc_validate_comment_text_length; ?> ...
1
vote
0answers
80 views

Add WYSIWYG to Image Description field

I need to build this thing: It's essentially an image with a caption, and it can go inline anywhere in the text. I could just create a shortcode for it I suppose, but I'd really like to integrate ...
0
votes
0answers
21 views

Advanced Layout through TinyMCE

I am trying to get through this problem with advanced layout, I've found here which works great if all of my pages had the same design. What I am trying to achieve is being able to have a different ...
2
votes
1answer
123 views

wpeditor issue - shows both mode and not able to focus/edit during visual mode

I am trying to integrate wpeditor to a textarea using the code below. It brings the TinyMCE editor but if the user leaves the page on visual mode and tries to edit the same again, the visual mode ...
0
votes
0answers
145 views

After wordpress widget save (ajax call) tinymce editor gone, data not saved

I have made tinymce editor for textarea fields in widgets. I'm enquing scripts: wp_enqueue_script('tinymce', home_url() . '/wp-includes/js/tinymce/tinymce.min.js'); wp_enqueue_script('tiny', '/wp-...
0
votes
0answers
35 views

mceInsertContent repeating previous values

I am trying to insert a shortcode to the editor using jQuery dialog. But every time I click on insert button it adds the previous values with the current values. For example, on first click it adds ...
0
votes
0answers
42 views

How to use a TinyMCE filter?

I am new in WordPress. I am trying to add a filter for tinymce like: function wpdocs_teeny_mce_button( $buttons, $editor_id ) { $buttons = array('bold', 'italic'); return $buttons; } ...
0
votes
1answer
47 views

Visual Editor not working properly

I have facing this issue since last one month. I would like to display my source code using the Syntax Highlighter so i have changed my editor mode from visual to text. I put my code in [html] &...
3
votes
0answers
335 views

Initialize TinyMCE editor / visual editor after AJAX insert

I have a "repeater" style field group on a custom options page. There's an active visual editor in a hidden state, and when the user clicks "add new" the whole row is cloned. I then need to initialize ...
1
vote
1answer
280 views

Custom TinyMCE style formats disabled

I've created a TinyMCE style dropdown for the TinyMCE WordPress editor. The formats are appearing as expected on the editor but when the drop down is expanded to choose from a style, they are showing ...
0
votes
1answer
26 views

How can I allow the user to press enter without creating a new element in the editor?

I wrote a tinymce button to place a special div on my editor (I didn't use the format dropdown because the client was unsure of it). When the user presses enter inside the div it creates another ...
0
votes
1answer
473 views

Visual composer causing conflict with TinyMCE [closed]

My Tinymce is not showing up by default. All out of the sudden, without any new plugin installation or what so ever, VC plugin started to force my text editor (when creating a new entry) to switch ...
1
vote
0answers
88 views

Change syntax styling of TinyMCE HTML Text Editor

So I have customized the CSS display for the TinyMCE 'Visual Editor' by using this here: /* Add Theme CSS to WP Content Editor -------------------------------------------------- */ function ...
0
votes
1answer
436 views

Blank spaces show as a question mark

I have a client who wanted to restore her old website from 5 years ago with a very small budget. I suggested that she at least uses Wordpress for CMS and now she has a limited editing capability of a ...
5
votes
0answers
244 views

Reset Undo on the tinymce editor

I have one editor where I switch between content in one editor, and what I want to do when I set the new content, I would like to reset the undo possibility. I have read on this site http://www....
0
votes
0answers
69 views

Editor Styles Not Working

I am trying to re-style the TinyMCE editor here: http://dannymcgee.net/duskguard/forums/forum/general-discussion/ I've tried both of these in my functions.php: add_editor_style(); or ...