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
9 views

How disable checkbox when listbox value changes in tinymce

I'm creating a custom popup in tinyMCE for WordPress, to insert video shortcodes, so I have a list of websites (YouTube, Vimeo, Vine, and others) in a listbox, and a checkbox to let the user decide to ...
-1
votes
0answers
18 views

TinyMCE PHP vs jQuery - add media button

My custom post's admin section uses both the built-in PHP and jQuery versions of TinyMCE on the same page. I use the PHP version on static content (using wp_editor) while I have to use the jQuery ...
0
votes
0answers
9 views

Wordpress built in TinyMCE and jQuery

I am trying to use jQuery (the jQuery shipped with wordpress) to replace a dynamically generated textarea with TinyMCE. var fieldID = jQuery(parent).find("textarea#field_id_1"); tinyMCE.init({mode: ...
1
vote
1answer
22 views

Multiple TinyMCE editors in dynamically generated textareas

I have text-areas dynamically populated in the admin section of my custom post type. <div class="media_div"> <span>Media</span> ...
2
votes
0answers
28 views

TinyMCE - Add button that changes direction of selected text

Ok, I am going to create website in Urdu(rtl) & English(ltr) language that contain paragraphs like this: <p style="direction:rtl">کیا حال ہے buddy? سب خیریت ہے؟</p> You can see that ...
0
votes
1answer
25 views

Better code/text editing for posts and pages?

What is the most well known or liked method or plugin to improve the text editor for posts/pages? I would love to have syntax highlighting and formatting, along with other IDE type functionality in ...
1
vote
1answer
46 views

How to Add TinyMCE's plugin in wordpress?

I had found a TinyMCE's plugin that change the direction of selected text. How to add this plugin in wordpress? Any one guide me? I had tried to add it in ...
0
votes
0answers
19 views

Add tinymce dynamically via Javascript

I'm struggling to add dynamically a tinymce textarea. I added a custom meta box which contains a button that should add a tinymce. As I'm on post/page, I guess I don't need to include any scripts ...
6
votes
1answer
63 views

Modify links when inserted by WYSIWYG editor

Is there any possibility to hook into the editor of WordPress so that if a link to an internal content is inserted via the WYSIWYG editor the post id of that linked post is added as a data attribute ...
0
votes
2answers
83 views

allowing all HTML tags in tinymce editor

I have a plugin where I am creating a shortcode that creates a form with a textarea field. I would like the user to be able to insert a complete HTML page into the editor - including the HTML and BODY ...
0
votes
1answer
27 views

Disable HTML (Text) Tab in Post Editor

I am attempting to disable the Text tab in the post editor but not having any luck. The first thing I want to do is set the Visual editor to be the default but this code does not work (it is being ...
0
votes
1answer
19 views

Change padding to text indent in “Increase indent” TinyMCE

If you click "Increase indent" in the visual editor it adds the following code into the text editor: <p style="padding-left:30px;"> How to change it to text-indent: 30px; not affecting the ...
0
votes
0answers
18 views

Creating an editable component in TinyMCE editor (like Read More component)

I want to create a component in a TinyMCE editor that is created by clicking a button in a toolbar. So I already managed to add a button to a toolbar and add some text to an editor by clicking it, but ...
2
votes
0answers
94 views

Completely strip any hidden formatting when pasting into TinyMCE

In WordPress v4+, I want to remove all hidden formatting when users paste content into TinyMCE visual editor. The Paste as Text button works when users insert text from Microsoft Word but doesn't do ...
0
votes
0answers
14 views

tinyMCE, style format dropdown customize

I have been looking into tinyMCE api and documentation to solve this problem but couldn't solve.. I am doing following things to add style_format. what it does it creates a wrapper div around the ...
0
votes
0answers
47 views

TinyMCE editor doesn't keep new lines

I'm using the plugin USP-Pro to let users submit content to a Wordpress blog. The form I've created contains different input fields and one textarea. For the textarea I've used the attribute richtext ...
0
votes
1answer
20 views

Remove heading tags on line break

I have to add line breaks in a h1 paragraph using the visual editor. On every line break Wordpress automatically adds h1 tags to every new line. Example: <h1>Watsup</h1> ...
2
votes
1answer
72 views

Am I using the right hook for removing quicktags on the admin TinyMCE?

This is more of an excercise than something for a client. Anyway, I'm trying to disable the quicktags when you're on the dashboard and you click on Comments > Edit Comment. On that screen, there's a ...
1
vote
2answers
48 views

Should the WP post editor B (bold) button be inserting a <b> tag instead of <strong> in HTML5?

Using WP 4.0. I thought that the html5 schema was supposed to be turned on by default. That would mean that clicking the B (Bold) button would generate a <b> tag, rather than a <strong> ...
0
votes
1answer
15 views

mce_external_languages: how does it really work?

I have been reading very carefully and more than once the documentation, yet I don't understand how to provide a plugin with multiple languages. In the example there is an array, such as: $strings = ...
1
vote
0answers
26 views

Change tinyMCE editor to allow marked content when pasting from Word

I'm a big supporter of how WordPress handles pasted text from Word, however for my client I need to change this. My client is marking text within Word to use as a reminder (background color). Does ...
0
votes
0answers
39 views

How can I modify tinyMCE deafult inline format?

I am using wordpress 4.0+ and I am having some issues when aligning my content. The last paragraph breaks and it displays like this after saving the article: < p style=”text-align: ...
1
vote
2answers
123 views

Add CSS Class to Link in TinyMCE editor

In searching for a solution, I've come across the plugin to enable a dropdown of CSS styles already present within a stylesheet. What I want is to allow the editor to add CSS Classes from a textbox. ...
0
votes
0answers
12 views

How to update TinyMCE JavaScript files in WordPress

I'm attempting to update TinyMCE JavaScript files that are included in the WordPress core, inside wp-includes/js/tinymce. Example: I want to update the paste plugin in ...
3
votes
1answer
149 views

How to disable TinyMCE 4 keyboard shortcuts

I want to disable all TinyMCE 4 keyboard shortcuts. I have looked around for a workable solution but only realised how poor the TinyMCE documentation is.  I did find one answer here but either I do ...
1
vote
0answers
48 views

tinymce.get() returns error after ajax request

In the backend, after an event I make an ajax request which populates certain fields. The problematic field is the textarea, for which I use wp_editor like so: <?php $settings = array( ...
0
votes
0answers
20 views

WordPress dynamic menu with TinyMce

I came across a problem with TinyMce in Wordpress. I've got it set up in my theme, and it works just fine when it's hardcoded. I bump into a wall when trying to create a dynamic one. In short, I need ...
0
votes
0answers
17 views

Featured-image first image is broken image

I had recently noticed a problem specific to a theme I'm working on, where the "featured image" section fails on the post-editor page. It doesn't give a JS error, and comparing the source with the ...
0
votes
1answer
32 views

Output html source tags inside shortcode

I have made a custom popup tiny mce button to add source code.This put shortcode like this [source] <h1>Hi</h1> [/source] To capture output I used function caption_shortcode( $atts, ...
0
votes
1answer
25 views

TinyMCE HTML Encode Backslash

so my question is similar to the one found here, following the example there i am trying to force Tiny MCE to encode backslashes...... currently all i am doing to test this is setting a break point ...
0
votes
1answer
126 views

Keyup events in tinymce editor not working

I am trying to develop a plugin, that shows on the page/post edit page. What I need to do, is detect when the content area changes. Either in visual mode, or text more. I would like to use a keyup ...
2
votes
0answers
20 views

Is it possible to re-use the image details popup?

I want to extend my image field in my widget with an 'edit image details' button. Is it possible in some way to re-use the popup from the tinyMCE editor? So i can use the size settings for example. ...
0
votes
1answer
36 views

Shortcode from admin textarea to page

I've added shortcode to a page via a custom textarea in my Wordpress admin, but the shortcode is seen as text and gets wrapped in quotation marks, so it doesn't work. This is basically how I ...
0
votes
2answers
24 views

Is it better practice to create many page templates, or a a few base templates with custom HTML added via TinyMCE?

I have been teetering back and forth on this question for a while and after a recent battle with TinyMCE, I wanted to get some input. If I am creating very different pages with unique javascript ...
0
votes
1answer
147 views

Creating a custom MCE view for your shortcodes [closed]

How to create a custom MCE view of my own WordPress shortcode?
0
votes
1answer
99 views

Getting shortcode attribute values and shortcode content with JavaScript regex

This is an example shortcode: [boutique_banner title="Loyalty Program:" link="More" linkhref="/"]Earn 1 point for every $5 spent[/boutique_banner] I have created a custom mce view to display this ...
0
votes
1answer
119 views

How to stop editor removing space (&nbsp;) in the beginning of the paragraph

I use WordPress with TinyMCE in Chinese. It needs double white spaces in the beginning of each paragraph. But the editor will automatically removing all spaces(white space and nbsp; code) in the ...
1
vote
0answers
38 views

Trouble adding tiny mce to textarea in custom plugin

I'm using the Sunrise open-source OOP framework to develop my plugin. I am building out a new settings page and I'm having trouble adding in a WYSIWYG/tiny MCE textarea to the settings page. I've ...
0
votes
0answers
27 views

Filter html of WordPress editor in visual mode only

1 down vote favorite I have done a lot of Googling , but have not been able to figure this out yet. I have used a function in a plugin I am creating that swaps out the file url of any image inserted ...
0
votes
0answers
101 views

WP_EDITOR on Frontend in bootstrap modal doesnt work properly

im stacked on one problem. in my plugin, i open a bootstrap modal and inside it i want to display the defaul WP editor, called by the function wp_editor(). What i get is the textarea with buttons and ...
0
votes
0answers
111 views

tinyMCE.activeEditor = null WP editor loaded in 'Text' mode?

I have a plugin which saves data via AJAX, and realised that it wasn't sending out any request. I opened up the console to look further, and low and behold when trying to look at the object ...
0
votes
0answers
15 views

How to add an image uploader to shortcode generator?

Creating a quote shortcode which requires an image. I managed to find shortcode generator tutorials which inserts simple stuff like tabs, columns or just quotes without images. How do I add and use ...
0
votes
0answers
47 views

TinyMCE Format Dropdown as a Class Toggle

I'm developing a WP site that has 2 button styles that can be placed inside the Content Editor. So far I've been able to add classes as custom styles in the Format dropdown, but when I use that, it ...
0
votes
1answer
41 views

Generate Own Custom CSS Button with icon

I recently changed my WordPress theme and noticed that all the buttons in previous theme are gone and are now looking like this on my new theme: [button link="http://.....com" style="download" ...
0
votes
0answers
99 views

Editor/TinyMCE - change double enter key to <br /> and single enter to nothing

I have learned over the last year on Stack Overflow that people here prefer I give all details in the beginning instead of answering 12 comments worth of this stuff later. EDIT: If you don't want to ...
0
votes
0answers
27 views

Why am I able to add a “formats” dropdown, but the style isn't applied?

I've created style called "smalltext" so the user can specify a paragraph with smaller text to match the theme where needed: add_filter( 'mce_buttons_2', 'my_mce_buttons_2' ); function ...
0
votes
0answers
60 views

How to add the wp-media-library button in tinymce?

That is a screenshot from the admin backend for the the tinymce editor in fullscreen view. I am implementing the editor in the frontend and I want to add the wp media library button in the default ...
0
votes
1answer
21 views

How to edit blockquote image

I'm using TinyMCE Advanced, to show more options to edit text. When I use the blockquote, an image appear, like this: How can I change this?
2
votes
1answer
116 views

Text cut off after the character 𪇆 in TinyMCE

I use the latest version of wordpress (v3.9.2, Taiwan Chinese Traditional), and found it can not display this Chinese word 𪇆, but other Chinese words can be displayed normally. I just use this word ...
0
votes
0answers
126 views

Inline Editing with wp_editor and tinymce (problem with textarea)

I want to use the new inline editing from tinymce with the wp_editor function in wordpress. Here is some info on how to set up tinymce inline editing http://www.tinymce.com/tryit/inline.php The code ...