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
1answer
17 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 ...
1
vote
0answers
10 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
5 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; ?> ...
0
votes
0answers
13 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
9 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 ...
0
votes
0answers
10 views

TinyMCE editor for woocommerce product attribute

I am creating a custom product attribute by a use of a plugin, but there is a problem that it outputs a simple textarea. What I need is either a TinyMCE editor or some simple editor with a possibility ...
0
votes
0answers
11 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
23 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', ...
0
votes
0answers
13 views

Why does TinyMCE generally use pt instead of px?

If you look at the Tinymce examples you'll see that whenever they have a font size picker, they will generally have pt instead of px. This is inconsistent in many places where other systems use px in ...
0
votes
0answers
8 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
14 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
21 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] ...
2
votes
0answers
30 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 ...
0
votes
1answer
27 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 ...
-3
votes
0answers
51 views

Add Indian languages in post?

I have created a text document in Microsoft word using the MLT-fonts,same thing copied and paste content to the wordpress post, its not seen in Malayalam language Tried to ALTER TABLE post table ...
0
votes
1answer
12 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
33 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
30 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
53 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 ...
1
vote
0answers
24 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 ...
0
votes
0answers
43 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 ...
0
votes
1answer
91 views

Add Item to Custom TinyMCE Menu

I've created a custom menu which appears on my TinyMCE toolbar but would like to add another item to that menu in a separate function elsewhere in my plugin (depending on whether some other ...
0
votes
1answer
49 views

Add Button to TinyMCE Custom Menu

I've added a new button with a menu to the TinyMCE visual editor using this tremendously helpful tutorial but would now like to add further items to this menu depending on whether various post types ...
0
votes
1answer
26 views

`tinyMCE is not defined` after migrating site to server

After migrating site tinyMCE (text editor) top bar have disappeared & text color have changed to black, I am getting 4 errors in concole and below is a snapshot of it. I am using WordPress ...
1
vote
0answers
45 views

How to prevent shortcode preview from breaking in tinymce editor?

I am creating visual preview for shortcodes (just like captions). I have don't most of the parts but my preview html is getting broke by the editor when post is saved. I have investigate it further ...
0
votes
1answer
54 views

how to see P and BR tags in tinymce?

As a developer, I'd really like to have the ability to see every tag written out on the editor in source mode. Is there a way? Some filter, action, or so?
1
vote
1answer
67 views

How to get WP editors tinyMCE instances

My main goal is to get editor content when it changes and update a live preview. For this I need to add an event listener to the editor. BTW, I have two editor in the same page and the page is loaded ...
0
votes
0answers
39 views

How do you prevent the WordPress editor from stripping out <BR> and <P> tags

When I flip between the Visual Editor and the Text Editor, the <p> and <br> tags get stripped out. How do I prevent this?
3
votes
1answer
100 views

WP_Editor - Remove TinyMCE Toolbars

I've created a TinyMCE Editor in a Metabox and I'm trying to remove the toolbars. According to The Codex I should be able to pass it an array of options to override the default TinyMCE. Here's what I ...
1
vote
1answer
95 views

Add a select a class dropdown in tinymce

How can I add add a dropdown/select with pre defined class names into the Wordpress wysiwyg (tinymce advanced) that I can put on different elements? What I'd like: Add some text or any other ...
0
votes
1answer
20 views

Extending the “Add Media”-Dialog … how do I finally insert something to the Post?

I'm developing a plugin, which extends the "add media"-Button in the Post-Editor. I found an example (I think it was nextGen Galley maybe) where wp_iframe is used in the add media dialog. For some ...
0
votes
0answers
9 views

how to disable hidden paragraphs only on admin editors?

is there some smart way to have wordpress stop hidden paragraphs on the code view of the editor? This sentence complitely describe the problem...
0
votes
0answers
36 views

Can't insert links or edit image attributes with visual editor

I am trying to make popup edit screens where I have text input and a wp_editor. My only problem in the editor is that I cant insert links with the visual editor or edit image attributes with the ...
0
votes
1answer
56 views

Wordpress tinyMCE Keep Wrapping <p> Tags To HTML Codes When Saving

Wordpress tinyMCE keep adding <p> tags when I saved my custom post types in visual mode opened! I had searching for many solutions, but not working. Here is the solution that I found, but this ...
0
votes
1answer
98 views

Replace Taxomony Description Field with Visual/WYSIWYG Editor

Is there a way to add a TinyMCE editor to the taxonomy description field on the term editing pages? The solution here (Can you add the visual editor to the description field for custom taxonomies?) no ...
0
votes
0answers
69 views

TinyMCE custom button disapear from visual editor after wordpress update

I am using typegrid wordpress theme. This theme comes with shortcodes buttons on visual editor but when i updated wordpress to 3.9 the shortcode buttons on visual editor disappeared. Can some one ...
0
votes
0answers
57 views

How To Add Custom TinyMCE Buttons In Text Mode

When I add custom buttons to the WordPress Post Editor (TinyMCE), they appear in the Visual mode, but are not visible in the Text mode. I have seen plugins displaying buttons in both the modes. Any ...
0
votes
0answers
17 views

Why can't I type [ ] opening and closing brackets on the Visual tab?

Trying to type [ brings the text area to full screen. Trying to type ] does nothing. It really inhibits my shortcode usage. On the Text tab it works fine, so it's only in TinyMCE. I use an european ...
0
votes
0answers
26 views

open wordpress tinymce editimage dialog on image click from editor

How can i open wordpress tinymce editimage dialog instead of image edit toolbar options. I did following but not seems working editor.onClick.add(function(editor, e) { if ...
1
vote
1answer
74 views

Add table button in editor without Plugin

i want to add the "tablecontrol" ty the editor. This is what I've tried: function my_mce_buttons_1($buttons) { $buttons[] = 'superscript'; $buttons[] = 'subscript'; $buttons[] = ...
0
votes
3answers
325 views

Wordpress tinymce prints empty P tag and break html format

I'm raising this problem because I don't find a latest answer and the problem still exist to me. I'm running wordpress 4.2.2 with x theme when I'm editing the content via WP default editor (tinymce). ...
0
votes
0answers
131 views

Tinymce show/hide textarea when checkbox clicked

I have extended my tinymce as seen below. Now I am trying to make the textarea msgGeneral visible when i click on the checkbox fbSBtn. The code i have below does not work. Any suggestions from you? ...
1
vote
0answers
28 views

Default Link for TinyMCE “Add Link”

How can I set a default value for the "Add Link" function of the TinyMCE editor so when you press the button the URL will already be set to a predefined value, e.g. "http://www.google.com"?
0
votes
1answer
50 views

data-accordion removed in Visual Editor

Using Foundation 5's accordion, and the data-accordion html data attribute in: <dl class="accordion" data-accordion> gets removed when a user only edits a page with the Visual Editor. Does ...
0
votes
0answers
15 views

What's wrong with this code? (TineMCE)

I'm trying to make a button that when it clicked, it wrap some text with shortcodes. Everything went good and I did this button, but now, I want to go to the next step which is to make the button a ...
0
votes
0answers
98 views

Prevent TinyMCE from stripping html comments?

I'm working on a plugin that adds <picture> element support to a site using picturefill.js to polyfill it in - as part of it I'm allowing the picture element html to exist in the editor content. ...
0
votes
0answers
92 views

How to get a full functional wp_editor and colorpicker in tinyMCE popup

I'm trying to make a custom shortcode generator. I call a php document through AJAX in a tinyMCE popup. There, I'm trying to have a wp_editor instance. Also color picker. I'm not getting everything ...
0
votes
0answers
36 views

Adding custom post formatting options in custom post types

I've added custom post formatting options using the below code - function wpb_mce_buttons_2($buttons) { array_unshift($buttons, 'styleselect'); return $buttons; } add_filter('mce_buttons_2', ...
0
votes
0answers
16 views

Admin Editor Issue

I want to enable multiple <br /> tags in the back office editor as user press [SHIFT + ENTER]. Like Gmail Editor. Otherwise I need to disable linebreaks on [SHIFT + ENTER] and it should just ...
0
votes
0answers
19 views

TinyMCE Custom Styles or Shortcode Components?

One of the WordPress theme projects I'm working on for a hiking and travel blog adds additional facts and notes in small info boxes about the particular topic being discussed. For instance, on a post ...