The wp_editor() function allows plugin and theme developers to render a custom instance of the TinyMCE editor used by WordPress

learn more… | top users | synonyms

2
votes
1answer
120 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 ...
2
votes
1answer
525 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 tinyMCE....
2
votes
1answer
285 views

wp_editor on input changes content

I have a text area using wp_editor On first input it works great. Save via text or visual it saves to mysql just fine this is what is in the text area before I save <a href="/wp-content/...
1
vote
1answer
59 views

WordPress Editor not getting youtube video preview

When I am creating a post from the admin panel and using a youtube link in the Editor, the editor automatically fetching the video from youtube and displaying right away in the editor. But When i ...
1
vote
1answer
90 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
61 views

Backslashes being stripped from CSS

The title explains my problem. Upon saving CSS stylesheet in the "Appearance > Editor", single backslashes are being stripped out of the stylesheet. For example: content="\foo" becomes: content=...
1
vote
1answer
217 views

More than one TinyMCE (wp_editor) with different $settings['drag_drop_upload'] values breaks

It appears that when I have two+ separate wp_editors with different values for drag_drop_upload they all are built as if they have drag_drop_upload set to true. If I set them all to false they act ...
1
vote
1answer
179 views

wp_editor not modify html tags of initial content

How can i set the tinyMCE editor in wp_editor to not modify/replace the html tags of the initial content ? I'm loading html content with tags (i know that they are deprecated but i need them) and ...
0
votes
1answer
17 views

Adding text above the editor

I need to add a static block of text above the editor. This needs to appear not only on post edit screens, but also the widgets screen, as I'm using a plugin to enable usage of the visual editor there ...
0
votes
1answer
130 views

how to get wp_editor to save data in plugin admin page

I'm trying to use plugin settings api to add wp_editor, but the text is not saving. // add the admin settings and such add_action('admin_init', 'my_plugin_admin_init'); function my_plugin_admin_init()...
0
votes
1answer
186 views

add wp_editor to custom_meta_box

Can please anyone help? I created custom meta boxes, two of them are in textarea. This is what i have: array( 'label'=> 'Ingredients', 'desc' => 'List of ingrediends', '...
0
votes
1answer
2k views

Add a wp editor to custom plugin and save data

I'm creating a custom plugin. One of the fields in the plugin let's the user add data. If I add a textarea the user has no control over the text. So I would like to add a editor. I know WordPress ...
0
votes
1answer
34 views

How to make this clean?

I test on localhost $MySITE = 'http://www.ciusan.com'; wp_editor($MySITE, 'CNB_Content', $settings = array('media_buttons' => false,) ); but on output always: http://localhost/\"http://www....
1
vote
0answers
106 views

Visual/Text tabs in wp editor Not Showing

I have a wordpress website that i have added custom meta boxes to the post. Custom meta boxes have an editor using wp_editor(), but the editor is refusing to show the visual/text tabs on the editor ...
1
vote
0answers
140 views

Like to convert textarea into using wp_editor

In the first code below I would like to use wp_editor in lieu of the textarea. The second code snippet shows what I'm trying to use in the first code while keeping all the arguments etc in the first ...
1
vote
0answers
81 views

wp_editor in metabox not working

So, I've created a meta box within my page to allow my client to be able to add content into multiple different content blocks dynamically. I've done that using the wp_editor function like so. ...
1
vote
0answers
84 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 ...
1
vote
0answers
153 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 ...
1
vote
0answers
170 views

Theme option not saved if in wp_editor() and html decoded

i'm trying to add wp_editor() to my theme-option page but it is not saved when html is decoded. so this is the issue: in the theme option page i successfully added a new option called ...
1
vote
0answers
526 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( '...
1
vote
0answers
237 views

wp_editor in thickbox

I am updating a shortcode generator that I made before and I want to add in addition to text areas inputs etc.. a tinymce editor, so I call wp_editor in the ajax content of the thickbox, the editor ...
1
vote
0answers
58 views

How do I prevent the wp_editor from loading outside container?

I'm trying to load the wp_editor on a settings page: <?php //$content = $value->playerBio; $editor_id = 'listingIntro'; ...
1
vote
0answers
35 views

How would I load wp_editor someehere else other than the admin area?

I would like to use the wp_editor in my article page for live blogging, but the tiny mce does not show up. Can someone guide me through this?
1
vote
0answers
218 views

wp_editor loses data, perhaps an html_entity_decode problem?

I have a custom meta box that I created with WP Alchemy. It has two wp_editor fields. These fields are behaving very strangely. If I just type simple text into them, they work just fine. But if I ...
1
vote
0answers
224 views

WP_Editor - Setting render location on page

I'm trying to include wp_editor in a settings page. public function addEditor($content = '') { $editor_id = 'createposteditor'; $args = array( 'textarea_rows' => 15, ...
0
votes
0answers
17 views

disable inline css

Is it possible to block the use of inline styles and on-page blocks of CSS in the editor? I don't want to block the use of SVGs and other clever stuff but I just want to prevent someone from adding ...
0
votes
0answers
52 views

image_send_to_editor filter

I'm trying to achieve the code below, when using the normal default editor in wordpress. <div class="col-md-6"> <figure> <img class="alignright" src="/wp-content/themes/tna-...
0
votes
0answers
65 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

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
0answers
44 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
26 views

Editor Style when using diferent Page Templates

I created two templates on my WP theme, one with full-width and other with a sidebar. Like this: template-fullwidth.php <main id="content" class="main <?php echo storms_classes_page_full(); ?&...
0
votes
0answers
50 views

How to add 'Site Identity' capabilities to customisation for editors

I was able to give most capabilities to editors for the Customisation. However I'm lacking the Site Identity capability. I found this thread How to change in customizer the "site identity&...
0
votes
0answers
24 views

Can't select right word in editor

I have a problem in my WordPress /wp-admin. When I add a new post and write something like: Lorem ipsum te erat phaedrum partiendo cum. I can not select the word "phaedrum" from the paragraph ...
0
votes
0answers
175 views

Get and Display Content in wp_editor

I am building a simple plugin where I display a visual editor in the backend. My Code looks like this: $content = ''; $editor_id = 'ssp-editor'; $settings = array('textarea_name' => 'ssp-editor');...
0
votes
0answers
51 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
51 views

use wordpress editor with fancybox

Hi i'm making a wordpress plugin that use fancybox. The problem is the page using fancybox does not use wordpress built-in css and js like wp editor: $my_text_setting = array("media_buttons"=>...
0
votes
0answers
70 views

jQuery keyup() on Visual editor

I need to trigger typing in Visual editor and to get current text from it. Is it possible? Then next line are not working: $("visual_editor_selector").keyup(function(){alert("Changed")}); $("...
0
votes
0answers
86 views

wp_editor with custom editor_id not working

When give editor id like my-form[myeditor] form wp_editor doesn`t work and text editor (Html tags) only shown not also visual editor $settings = array( 'media_buttons' => false ); wp_editor(...
0
votes
0answers
33 views

wp_editor Too Tall when Content is Loaded

I am using the code below to load a custom editor for my application: <?php wp_editor(stripslashes($post->post_content),"project_description",array('quicktags'=>false, 'textarea_rows'=>10,...
0
votes
0answers
112 views

None of the JavaScript works when using wp_editor

I'm trying to create a front-end editor for my Wordpress theme using wp_editor. While it outputs the editor, there's loads missing from it. There's no title, no submit button and none of the JS works,...
0
votes
0answers
2k views

Add Media Upload Capabilities Needed for Custom Role for non-Posts

I finally managed to update an old WP 3.3.1 site to WP 4.1 with few issues, but one unexpected change seems to have come about with relation to file uploads. In the WP 3.3.1 version of the plugin, I ...
0
votes
0answers
274 views

echo wp_editor to screen with formatting

I've created a custom field containing a content editor (including formatting toolbar) I can save any inputs such as text, font colour etc with no worries. I am however struggling to out put the ...
0
votes
0answers
106 views

apply_filters to content but ignore shortcodes

I want to prepare my content added via wp editor so it displays nicely, so I use apply_filters like so: $ld = apply_filters('the_content', $ld); That works fine for the page, but in the backend ...
0
votes
0answers
1k views

Convert textarea into TinyMCE

This code converts the textarea into the TinyMCE editor: $('.text_editor').each(function(){ var textfield_id = $(this).attr("id"); window.tinyMCE.init({ mode : "none", ...
0
votes
0answers
192 views

wp-editor-area textarea disapear on cancel-comment-reply-link click

I am using this tutorial to implent the wp_editor in comments. everything went fine except when i click on cancel-comment-reply-link. the form move on to its initial position on the bottom of ...
0
votes
0answers
98 views

load wp_editor without wp_footer

Im trying to laod wp_editor in a popup and I don't want to use wp_footer and fill it with lot of unnecessary js, css and html loaded by other plugins. At the moment when i need wp_editor I have: //...
0
votes
0answers
197 views

Link directly to media file through 'add link'

I'm trying to achieve exactly what the title says. I'm building a site for a client, and am trying to make the site as user friendly as possible. They aren't very IT literate, and already are ...
0
votes
0answers
92 views

How can I open WP rich editor within colorbox in the front end?

I have a site on which I've created a form to add new posts. The form opens in colorbox and I want it to contain a rich editor. I've added this code: <?php $args = array('textarea_rows' => 15, '...
0
votes
0answers
312 views

How to change name of tinyMCE toolbar button?

I want to change the tinyMCE pop-up from "Blockquote" to "Indented Quote" Lots of posts about customizing tinyMCE but none explain to how change just the titles.
-1
votes
0answers
19 views

Display wp_editor

I would like to display Wordpress editor on my own admin panel, but when I use wp_editor('', 'name'); I see editor but without buttons. I guess I should load external library like js, but I don't know ...