The WYSIWYG WordPress Editor

About me: I am an everyday Joe Schmoe that enjoys spending way too much time on the internet. Internet technologies such as XHTML, PHP, CSS, and FLASH are my best friends and hobbies. They are daily learning experiences and I enjoy sharing what I learn with others.

On the surface it seems like Visual mode is supposed to show your content as it’s going to look when you publish it; However, there are two key ways in which the WordPress Text Editor is not WYSIWYG and I think it’s important to get these out of the way early to avoid disappointment.

The Text Editor is not controlled by your style sheet.

What you see on your live site is formatted by the style sheet of your WordPress theme, but it has no effect on what you see in the Text Editor. There will always be differences between what you see in the Text Editor and what visitors see on the live site, and sometimes those differences can be quite major. That’s why WordPress has the Preview button, so that you can see your post the way your style sheet is going to display it. It’s important to check Preview before your publish or update a post.

The Text Editor thinks of spacing very differently than you.

You are probably used to hitting your carriage return (enter) on a word processor and getting extra space between paragraphs; in other words, the more you “enter”, the more space you get. Not so with the Text Editor. Put as many spaces as you like between paragraphs, but when you click Publish or Update, they all disappear.

My two cents: I add special coding to MANY of my posts including div tags and code. So, I spend a couple of hours writing a post without the Visual Editor. The wife comes along and clicks on the visual editor to take a sneak peak. Guess what, it removed most of the coding/markup. So I highly recommend disabling the WYSIWYG editor.

We learn from our experiences. Happy Coding!

Tags: , , ,

8 Comments So Far

  1. Aiko posted on April 24, 2010 | Permalink

    I’m using the TinyMCE (http://tinymce.moxiecode.com/) editor for my blog and I’m very happy with it. It’s quite extensive and produces valid code. Easy switch between WYSIWYG and HTML editor and it does keep the markup after making changes in the HTML.
    Hitting the carriage return results in a pair of P-tags. So, everytime you hit enter you get a new paragraph. If you just want a linebreak you have to hit shift-enter.

  2. Eric Zabinsky posted on April 24, 2010 | Permalink

    I use notepad and then cut and paste into WordPress. WordPress comes with its own editor. That is one of the beauties of WP. If you leave the visual editor turned off, it acts just the one one at ACN. TinyMCE is an excellent tool for all webmasters that want to get a good feel for the content preview. I bought and used Dreamweaver for years simply for FTP and site updates. Neither work to extend the purpose of what WordPress is trying to accomplish. It is an all-in-one content management system. You write into the client and simply hit publish. EASY unless you have a second party involved. =) I fixed that by REMOVING the visual editor.

  3. Eric Zabinsky posted on April 24, 2010 | Permalink

    Aiko, have you tried the software PHP Designer 2007? MOST EXCELLENT Software.

  4. Aiko posted on April 24, 2010 | Permalink

    Last year I made a site (small CMS) for a skating club and I decided to integrate TinyMCE for them, mainly because it looks a lot like MS Word. The person who is in charge of the content was very pleased because it looked familiar :-)

    Funny thing is: Once you give them a chance to use bigger font, colored font and font-style they start using it all at once … Large colored, underlined, bold, italic fonts. Center-aligning the text is also very popular. ROFL

  5. Aiko posted on April 24, 2010 | Permalink

    @Eric: “Aiko, have you tried the software PHP Designer 2007?”

    Nope, I’m using Notepad++ as my editor for HTML as well as PHP. Have been using it quite some time now and I’m quite happy with it.
    IMHO it’s the best editor available :-)

  6. Eric Zabinsky posted on April 24, 2010 | Permalink

    No kidding! Here is something just for you, I think you will understand! Let me know if this fits as a good example.

    http://theoatmeal.com/comics/design_hell

  7. Aiko posted on April 24, 2010 | Permalink

    Nice site. Comes very close to what I meant :-)

    Here’s the site from the skating club.

    This is a normal news page: http://www.ijscluboosterwolde.nl/nieuwsartikelen.php?id=20100210103317

    This is what I meant: http://www.ijscluboosterwolde.nl/nieuwsartikelen.php?id=20100125102753

  8. Eric Zabinsky posted on April 24, 2010 | Permalink

    LOL!!!

Register!


That's it - back to the top of page!

Recent Posts

POPULAR POSTS!