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
vote
0answers
22 views

Front end wp_editor not rendering audio/video links

I have an editor on the front end of a website using wp_editor. It mostly works as expected; very similar to the admin side editor. However, when I enter an audio or video link, the players are not ...
1
vote
3answers
3k 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
421 views

TinyMCE 4 & wp_editor multiple editor issue

Just updated WordPress to new 3.9, new features are great, love them. Only got some issues with tinyMCE 4. I use wp_editor to create multiple tinyMCE editors with custom field. Here is the code: $...
0
votes
1answer
749 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 ...
0
votes
0answers
13 views

Load wp_editor in frontend via ajax

I have read so many solution and tried but nothing works for me. My situation: I have some links which on click i load/change content of the page. eg. jQuery('#content_id').load( jQuery(this).attr('...
0
votes
0answers
77 views

jQuery keyup() on Visual editor

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

How to add editor-style.css styling to wp_editor on front end for comments

How can I apply my own css (to match editor-style.css) to wp_editor being used on the front end for comments? Currently I'm using code from here to enable the visual editor for comments. My actual ...
2
votes
1answer
547 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....
0
votes
1answer
498 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
1answer
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
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
30 views

wp_editor returning invalid html

I am using wp_editor in my plugin. It is displayed on the page as: <?php wp_editor(get_option('edpp_card_design'), 'edpp_card_design', array( 'textarea_name' => 'edpp[card_design]' )); ?> ...
1
vote
0answers
22 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
1answer
959 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
1answer
18 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 ...
15
votes
2answers
384 views

Remove inline linking tool

I'm not a big fan of the inline linking tool published with WP 4.5. Is there a way to disable it?
1
vote
2answers
50 views

wp_editor in widget breaks after save (no buttons and visual tab broken)

My goal is to get wp_editor working in a simple widget which the admin can use to add text content on an admin options page. Here we go in wp-admin/widgets.php everything looks sooo good right. ...
22
votes
1answer
368 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
2answers
262 views

wp-editor is empty on first submit

I'm using wp-editor in a simple plugin, but I'm having an issue where the first time I hit the submit button the content from it is blank in the database. <?php $editor_id = 'mycontent'; ...
1
vote
1answer
76 views

TinyMCE Editor change underline button behavior - u tag instead of span text-decoration underline

As above. I want to change the WordPress Edtior TinyMCE behavior when I click the underline button I want the TinyMCE to wrap my selection with <u></u> tags. Now, I know that the u tag was ...
1
vote
1answer
399 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 ...
4
votes
1answer
62 views

Shortcode attribute escaping

I'm trying to set shortcode attribute value to ' " (single and double quote) by using escaped values &#39; &#34;. Example: [shortcode attr="&#39; &#34;"]test[/shortcode] As soon as I ...
13
votes
6answers
12k 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 ...
13
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 ...
0
votes
0answers
69 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
81 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
506 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 = array('...
1
vote
1answer
245 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
58 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
86 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
730 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
33 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
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 $...
1
vote
0answers
118 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
7k 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
48 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
43 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
156 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
183 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 ...
1
vote
1answer
64 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
votes
2answers
296 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
152 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()...
1
vote
0answers
13 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
15k 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
27 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
64 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
180 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
247 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
52 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&...