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

-1
votes
0answers
7 views

How to Fix a Misbehaving wysiwyg Editor

WP Version 4.5.1 I have a problem which began several months ago after (I believe a WP update to 4.4.1) . One of the sites I support has a wysiwyg editor which has gone bonkers. When I use the editor ...
0
votes
1answer
428 views

Multiple wp_editor instances in custom post type using Ajax

In a custom metabox, I need to generate a tinny wysiwyg wp_editor everytime we click on a button.. I struggled a lot with this and couldn't achieve it. The js $.ajax({ url: ajaxurl, data: ...
0
votes
0answers
22 views

How to integrate Visual Composer into a custom menu page?

I've created a custom menu page using add_menu_page and on that page I'm using wp_editor to add the default WordPress editor: add_action('admin_menu', function () { add_menu_page( 'Custom ...
0
votes
1answer
108 views

Add Media has stopped working in the front end since 4.5 update

I've got a page that calls wp_editor in the front end. Since upgrading to 4.5, the Add Media button no longer does anything at all. It works fine if you call it in the admin section. There's no word ...
9
votes
0answers
69 views

Adding Custom Text Patterns in the WP 4.5 Visual Editor

4.5 is out and with it new Text Patterns. I would like to know how to go about adding my own custom patterns. Taking a look at wp-includes/js/tinymce/plugins/wptextpattern/plugin.js it seems pretty ...
0
votes
1answer
1k 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 ...
1
vote
2answers
2k views

wp_editor doesn't work in front end area

I am developing a theme where I would like to have a front-end area, but when I try to include the wp_editor() in the page template I am getting this result: P.S. The wordpress editor works fine ...
0
votes
1answer
689 views

WP_Editor Shortcode Issue

I have created a front-end editor using wp_editor that functions as it should. Upon testing I have noticed that it is stripping out any shortcodes that have been inserted in the content. I have ...
4
votes
1answer
44 views

Shortcode attribute escaping

I'm trying to set shortcode attribute value to ' " (single and double quote) by using escaped values ' ". Example: [shortcode attr="' ""]test[/shortcode] As soon as I ...
11
votes
6answers
11k views

How to load wp_editor() through AJAX/jQuery

I have a theme that is custom developed and really complex. One of the things that I have is multiple content areas where users can specify content for specific tabs. I load multiple instances of ...
11
votes
2answers
2k views

How to load wp_editor via AJAX

Does anyone know how o load wp_editor via AJAX in WordPress? My markup and editor is getting loaded properly but editor controls are not getting loaded properly, it may be because Javascript is not ...
2
votes
1answer
478 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
26 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" ...
0
votes
1answer
851 views

How avoid WP editor to change <br/> by &nbsp;

Ok this is an old question and i may receive classical answers : use soft key I can't, i also use JIG and it makes the soft key invalid when i use it to make the text slightly downard to feet with ...
0
votes
0answers
27 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
1answer
467 views

How Can i print the wp_editor field content?

Normal editor content we can call as the_content(); here, i have 3 more wp_editor fields, how can i print the code in my page?. <?php wp_editor( $holds, 'holds', $settings = ...
1
vote
1answer
97 views

How to display TinyMCE without wp_editor()

I'm trying to enable WordPress' tinyMCE editor for a front-end textarea, from a plugin's pro version. I temporarily solved the issue in a bogus way: In free version: wp_editor( $details_val, ...
0
votes
1answer
3k views

Add multiple Visual Editors for Custom Post Type

I'm designing a site that will be part of a WP-Network; we have been told we cannot install plugins. I have a custom post type, which I have added in functions.php of the child-theme I am writing. In ...
0
votes
0answers
37 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
1answer
36 views

custom wp_editor does not save the content in plugin settings

I am creating a custom settings page for my plugin. I have four textarea fields, Which need to be replaced by wp_editor. My problem is that I am not able to store the data to database. Bellow is my ...
0
votes
1answer
670 views

textarea_name is not working with wp_editor

I used to use a normal textarea and tried to change the wp_editor on front-end. <div class="small-12 large-12 columns"> <textarea name="post_content" rows="10" ...
0
votes
1answer
23 views

Showing Categories for Page Edit - without plugin

I am building a theme without any extra plugins. Does anyone know the code needed to show the Categories in page Edit - without using a plugin?
3
votes
1answer
86 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 ...
1
vote
0answers
72 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 ...
2
votes
3answers
6k views

wp_editor adds HTML entities to the content

I'm building my theme options page and I want to use Wordpress TinyMCE editor here, so I'm calling wp_editor. But when I'm saving data some entities are added to the content for example, lets say I ...
0
votes
0answers
37 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
1answer
25 views

Save editor's value in user meta and retrieve it

I am making user meta fields. I have to implement a field named business_profile and implement editor on it. I have implemented the editor but I can't seem to either save its value or retrieve it. ...
1
vote
0answers
104 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 ...
2
votes
2answers
99 views

Theme options WP Editor

My text editor in Theme Options doesn't have font color option. How can I add that? I've searched around the web, but no luck. On regular pages and posts I can see the font color option. I'm using ...
0
votes
1answer
49 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: ...
-1
votes
2answers
259 views

Why am I not able to save / update data in wp_editor?

After looking at various suggestions here and on StackOverflow, I still can't figure out why my solution is not working. I'm adding an extra wp_editorto my posts / pages, but the data is not saved / ...
0
votes
1answer
93 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 ...
1
vote
0answers
12 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', ...
8
votes
4answers
14k views

How to get the input of a TinyMCE editor when using on the front-end?

I'm not sure why I haven't been able to find this, but does anyone know how to get the input of the TinyMCE editor? I am using it in the front end and want to be able to save whatever the user has ...
0
votes
0answers
22 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(); ...
1
vote
1answer
53 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 ...
0
votes
1answer
109 views

wp_editor in front end not working

This has been asked earlier here, but the answers did not help me. I followed the WP Codex but I still don't see the TinyMCE icons. While I don't care for the icons, I would like the users to have the ...
1
vote
0answers
224 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 ...
0
votes
0answers
41 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 ...
0
votes
1answer
86 views

How to add HTML5 required on wp_editor

I want to add HTML5 required for the client side validation on textarea generated by <?php $content = ''; $editor_id = 'YOURID'; wp_editor( $content, $editor_id ); ?> What is the ...
0
votes
1answer
43 views

is there any hooks or action to fire function of insert into post in media library?

I am seeking for help to find the action or hook in order to fire function insert into post in media library. I did create a new tab for my videos and would like to insert my converted video by ...
9
votes
6answers
10k views

Remove HTML editor and visual/HTML tabs from TinyMCE

Is it possible to remove the Visual \ HTML tabs from wp_editor and display only the TinyMCE editor? Basically, right now, I'm using wp_editor to display the smallest possible TinyMCE editor I can - ...
1
vote
2answers
1k 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 ...
2
votes
3answers
135 views

How to remove the “Path” line in the WordPress Editor for end users who are submitting a form?

There is a horizontal box of one-line height at the bottom with the character "p" in it that I want to get rid of for end users. I don't really care if it is there in the Dashboard Editor for site ...
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 ...
1
vote
1answer
74 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
0answers
56 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. ...
0
votes
0answers
135 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' => ...
0
votes
1answer
152 views

Embed and word Count not working for wp_editor instance

When using the wp_editor() function to have an editor, I do not see the standard word count and am unable to embed files. In the default post editor, word count is shown, and youtube urls are ...
0
votes
1answer
87 views

remove/hide wp-editor

I have created a meta-box for a certain page_template. So if the adminpage is loaded with the template it shows the metabox. This does not require the wp-editor to add content. So I would like to ...