Articles of wp editor

wp_editor and WPAlchemy messes up tags when updating

when using wp_editor, I paste my text in the visual editor. If I switch to HTML editor, all of my tags are there. So far, no problem. When I update the thing, all of my tags appear in my visual editor and in HTML, they become something like : <p><strong> If I update again, the […]

TinyMCE editor – new lines not rendered on front end

I’ve been working with a plugin making various tweaks and adding additional functionality. It uses custom post type to create a page with an associated download. In the admin area which allows you to create these new downloads, there is a box which allows you to add/edit a description for the download. This serves as […]

Remove specific buttons from wp_editor()

I know there are similar topics with accepted answers but I can’t find what I’m looking for. I want to keep only basic buttons in wp_editor(). I’m using this in an option page to make writing more comfortable. The problem is the theme adds a huge amount of quicktags I do not want on this […]

How to customize default wordpress editor?

Good to hear that Sonny (wordpress3.3) has the new editor API wp_editor() that gives us the ability to use multiple instances of the editor in our custom fields with ease. But I needed to customize the default editor (for the main content) and couldn’t figure out how to do it with this function. I needed […]

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 in the dashboard. Pietro

Show only oldest post by author

I am working with a heavily customized install of WP. I’ve set up a specific post type, taxonomy, and roles that gets to use just that post type. Ideally, I’d like to restrict members of that role using that post type to only create one post. This seems like it might be more trouble than […]

WordPress 4 and wp_editor() Not Showing Visual/Text tabs

I use wordpress a lot, i develop for it a lot too! I have a client website that i have added 10 custom meta boxes to the post edit screen in functions.php . All the meta boxes have an editor using wp_editor() This all worked find in wordpress 3.8 and 3.9 but now the site […]

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 called from a MU plugin): apply_filters( ‘wp_default_editor’, ‘tinymce’ ); Next, I want to […]

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/uploads/2014/03/Multi_Leaf_2098.jpg”><img class=”alignleft size-medium wp-image-555″ alt=”Drag Multi Leaf” src=”/wp-content/uploads/2014/03/Multi_Leaf_2098-199×300.jpg” width=”199″ height=”300″ /></a>Designed with a low arch, which promotes weight transfer […]

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 doesn’t work. It doesn’t allow to focus into the content area in visual mode and it shows […]