The tag has no wiki summary.

learn more… | top users | synonyms

6
votes
2answers
508 views

Add custom TinyMCE 4 Button, Usable since WordPress 3.9-beta1

How is it possible to add a custom button to the visual editor TinyMCE, Version 4? Currently I found this q&a with a little bit hints to the topic, but not a solution or a how to. But I can't ...
6
votes
3answers
2k views

Can you add the visual editor to the description field for custom taxonomies?

Can you add the visual editor to the description field for custom taxonomies? It would be nice to have this option available when you edit an entry for a taxonomy be it core or custom.
6
votes
1answer
4k views

Add popup window to TinyMCE buttons

I'm looking for a good tutorial on how to create a popup window with a TinyMce button that would allow the user to select from multiple options, enter text into inputs, etc. I know how to create a ...
5
votes
6answers
2k views

How can I improve the line break handling in the WYSIWYG editor?

I always find myself in HTML mode in the editor to try and get simple things like breaks between paragraphs to show up right (using <p></p>). Is that normal? Is there a better editor out ...
5
votes
1answer
2k views

Styling Shortcodes in Visual Editor

Does anyone know how to style the visual editor so that when specific shortcodes are used they are replaced with an image within the visual editor? I have found that many users screw up the shortcode ...
5
votes
1answer
496 views

Change behavior of “Insert into Post” based on attachment metadata

For a custom plugin I'm working on, I have added a checkbox element to the attachments editor in a manner like the answer provided here: How to add a checkbox element to attachments editor with ...
4
votes
2answers
1k views

Forcing reload of editor-style.css

Is there a method to force the refresh of editor-style.css, when I change manually the stylesheet for the TinyMCE editor? Modification doesn't show immediately but they will be cached in the admin ...
3
votes
4answers
2k views

Disable WYSIWYG editor only when creating a page

I read several articles about configuring the WordPress editor. For example, this snippet shows how to permanently set the editor to HTML or WYSIWYG for all contents. I'm wondering if it's possible ...
3
votes
2answers
811 views

Shortcode to insert <!--nextpage-->

Since wordpress does not have a menu icon (aka "user friendly) way to add the command to a post or page, I'm trying to create a shortcode to do it. However, as logic would have it, its not that ...
3
votes
3answers
4k views

How to add a WYSIWYG text editor to the Category Edit Screen

I've been working lots with categories lately, what with the increased awareness and demand for themed or silo'd site structures. To that end, I'm looking to enhance my category landing pages by ...
3
votes
3answers
3k views

Is there a way to prevent the Editor from modifying my HTML

Is there a way to prevent the Visual Editor from modifying my HTML when creating a post or a page? I know it has good intentions in doing what it does, but sometimes I'd prefer it not to touch my ...
3
votes
2answers
451 views

Is there a plugin to show the code tag button on the visual editor?

I write a programming blog, so sometimes I just have to write a word to represent a command or function which I like writing between the code tags. (See, what I just did there). So, just like ...
3
votes
1answer
174 views

Any good desktop client for wordpress with support for google syntax highliter?

I'm using Google Syntax Highlighter for WordPress and I have to go to the html view where I have to manually type the tags for pasting code and formatting gets messed up when I switch back to the ...
3
votes
4answers
6k views

Keep HTML format when switching from Visual to HTML editor

I've been looking around for a solution that will allow me to edit HTML code and have it remain after a switch to the Visual editor and back. I've tried a bunch of things with no luck: the ...
3
votes
1answer
290 views

Pasting images removes class attribute

When you paste an image with a class attribute in the Wysiwyg editor, the pasted image no longer has this class attribute. This makes it harder to copy and paste images that are aligned with the ...
2
votes
3answers
3k views

Hide page visual editor if certain template is selected?

How do I hide the page editor (WYSIWYG editor) if the current page is set to a certain template. I have the following code already to add in custom meta boxes when certain templates are chosen: ...
2
votes
2answers
3k views

Resizing the width of the WISIWYG editor

Just a simple question here but though my googling and searching efforts haven't found the answer to it. I'm wanting to re-size the width of my wordpress WYSIWYG editor to be 650px. What do I have to ...
2
votes
2answers
2k views

How do you change the visual editor's background color?

I have a Wordpress site in which the background color is black and the text is white. The site is fine, but it's a pain trying to edit content in the visual editor as the background is white (same ...
2
votes
2answers
2k views

What are the better WYSIWYG post editor replacement alternatives?

I hate the built-in WYSWIG editor for WordPress. (EDIT: Editors of the sites I support hate it, which in turn makes more work for me. Hence, I hate it.) I know there are some alternatives out there, ...
2
votes
2answers
122 views

Shortcode perfomance solution

I have a site that is performance critical. Doing shortcodes I thought about the time the server needs to parse and return the content, instead to allow some HTML (<div class="redletter">) to go ...
2
votes
1answer
418 views

Remove path from the create/edit a post view

Been fiddling around, trying to remove the "path" info that's shown when you create/edit a post in wordpress. Been able to remove word count and the saving draft info, but not the path thingie This ...
2
votes
2answers
412 views

How to customize the symbols that appear in the Visual Editor insert custom character

The TinyMCE Editor has a great button in the kitchen sink to insert custom characters / symbols. Is there a way to control what symbols show up in this pop-up? (Specifically I need some unique ...
2
votes
1answer
112 views

Wordpress visual editor broke due to non standard port?

I recently installed WordPress on my own server, which uses non-port 80 Apache service. I could view posts but the tinymce editor constantly broke. More specifically, all menu items in visual editor ...
2
votes
2answers
776 views

Drag-and-drop “Panels”-style visual layout editor?

I'm a combination Drupal and WordPress developer and have recently started playing with Drupal's Panels module -- which allows you to create flexible layouts and drop content blocks (The Drupal ...
2
votes
2answers
1k views

Remove hidden formatting when user paste text from MS Word into TinyMCE

Around a fifth of post submissions that I receive contains ridiculous amounts of hidden formatting. For example, here is some of it from a recent post: <!--[if gte mso 9]><xml> ...
2
votes
1answer
289 views

Hide page visual editor if template is selected - redux

The answer given to a previous and identical question is unfortunately not working on my WP install. I'm using a version of the function recommended there. function nim_hide_editor() { $post_id ...
2
votes
1answer
294 views

How to enable user_can_rich_edit for guests?

Using wp 3.3beta1 with the wp_editor on the front-end for bbPress. When calling the editor on the front end, how do I allow a guest to see the visual editor? I only see options to disable the visual ...
1
vote
2answers
301 views

Remove double space after a period

I run a multiple author platform with more than 1000 writers. Most users writer their content externally (Microsoft Word, OpenOffice etc) and paste it into the Visual Editor. Around 20% of the ...
1
vote
3answers
1k views

Preserving tabs and line breaks in <pre><code> when switching from HTML to Visual Editor

Tabs placed in a <pre><code></code></pre> block are stripped and line breaks are removed leaving a single continuous line of text. This occurs when switching from html to ...
1
vote
1answer
306 views

Remove whitespace at the end of posts?

My writer has a tendency to add extra newlines (Enter key) and spaces (space bar) at the ends of posts. Sometimes this results in inches of extra whitespace onscreen! Is there a way I can make sure ...
1
vote
2answers
173 views

How to display php source code inside a post using visual editor?

NOTE I don't want the php code to be executed, only displayed. I want to display this php code <?php wp_enqueue_script( $handle, $src, $deps, $ver, $in_footer ); ?> inside a post. I cannot make ...
1
vote
1answer
274 views

Is it possible to create nested lists in the WYSIWYG editor?

I'm looking to set up WP for a user that does not know or care about HTML, so I need everything to work in the WYSIWYG editor. She'll be working on posts that have lots of nested bullet lists, but I ...
1
vote
1answer
1k views

Disable visual editor on one specific page

I would like to remove the visual editor from one specific page because if I edit this one page in Visual mode, it breaks the code. I want to make sure the client doesn't have this option on the ...
1
vote
1answer
665 views

Can I remove the Rich Text box editor for a specific post?

A few months ago I asked a similar question: Is it possible to remove the main rich Text box editor? and got the following answer: function remove_pages_editor(){ remove_post_type_support( ...
1
vote
2answers
1k views

Switching From HTML to Visual Editor and Back Completely Strips Page Contents

I have a page (not a blog post) I need to embed an iframe on (it's to "integrate" an external service's product catalog). I added the iframe code in the raw HTML editor and saved the page. I viewed ...
1
vote
4answers
2k views

Is there any way to set default for “Insert/Edit Link” to “Open link in new window”?

I almost always select "Open link in new window" when creating an URL/HREF. Is there any way to default this choice. Even if it requires a small source code change, I think it would be worthwhile ...
1
vote
1answer
76 views

Can't load a class into WordPress post editor's content field

Following to THIS WordPress QUESTION we tried some tweaks and got some nice solutions, hope we can public them after some good active codes-snippets. According to our procedures, we correctly ...
1
vote
1answer
141 views

Editor background colour in full screen

In this Q&A, How do you change the visual editor's background color?, it is shown how to modify WordPress' editor background colour. My question is how can I modify the editor's background ...
1
vote
1answer
291 views

tinyMCE duplicates previous block element when pressing return (visual editor)

Going crazy with this. Can't figure out if this is normal behavior. I have added a filter to rewrite image inserts to use <figure> and <figcaption>. Works well. However, when I insert ...
1
vote
1answer
407 views

How to have custom tinyMCE buttons break onto next line when too long

There is probably a really simple solution that I am missing here but I have added multiple custom buttons to the tinyMCE editor in Wordpress and my problem is the row of buttons is too long (they're ...
1
vote
1answer
101 views

How to get line breaks to translate to paragraphs?

How can I get the line breaks that I make in the TinyMCE editor to translate into new lines in the web page. Suddenly all posts when actually previewed on the theme are walls of text. In the final ...
1
vote
2answers
756 views

Disable h1 and h2 from rich text editor combobox

In the Wordpress control panel, when writing a new post, I would like to disable the Header 1 and Header 2 from the text formatting combobox, because I already use them on my theme (h1 for blog name ...
1
vote
1answer
475 views

Limiting allowed html elements/strip harmful scripts from editor

How can I limit html elements allowed in the tinymce editor in Wordpress 3.1 and ensure harmful scripts have been removed (script/embed tags, etc)
1
vote
2answers
389 views

How to add a strip of visual editor on top of comments textarea

My blog is WP3.1.2, theme: Twenty Ten I would like to add a strip of visual editor on top of the comments box (something like you see at the top of question box on this site). How can I do it WITHOUT ...
1
vote
2answers
858 views

Visual Editor Templates

Hi there is anyway to style the visual editor in WordPress. For example if the user selects the page template shop say it loads into the visual editor a preset template which divs and formatted text. ...
1
vote
2answers
53 views

Is there a WordPress equivalent to MediaWiki templates

I'm new to WordPress and already in dire need of a way to reuse common page content. For example we have 10+ product pages and in different areas of each product's page I want to include a textual ...
1
vote
1answer
70 views

Adding html format on tinymce visual editor

Need to add more html format tag to TinyMCE Editor as visualized below Using Wordpress 3.6.1 Can't found any good example/guide for these modification. Another solution welcome. Thanks & ...
1
vote
1answer
50 views

Customize Editor Styles

I know there are plugins that do this, but since my needs are so small, I'm hoping there's another solution... I want to edit the <hr /> style in the WordPress editor to have clear: both;. Is ...
1
vote
1answer
112 views

JavaScript && operator in visual editor

I am used to of adding javascript/jquery code in posts via visual editor but it seems I never used && operator cause wordpress is altering && operator in &. Here is a link where I ...
1
vote
1answer
54 views

Disable pasting of images into wordpress editor

I have a user who loves to do this, It works fine for the website, but when it gets transferred over to the newsletter it breaks the newsletter. Is it possible to disable pasting of images into the ...