WordPress.org

Ready to get started?Download WordPress

Forums

Dean's FCKEditor For WordPress
Strips HTML Code Out: How to Prevent That? (3 posts)

  1. Glennf
    Member
    Posted 2 years ago #

    When I click the Source button and enter the blog post source with HTML in it, the HTML is stripped out of it.

    How do I just add strait HTML code (with encoding) and not have the editor strip it out?

    Here is an example below.

    <DIV style='padding: 5px 5px 5px 5px; border-style: dashed none dashed none; border-width: 1px;'><DIV style='background-color: FFFFCC; color: 000000;'><small><font color='FF0000'><b>TIP!</b></font> A great tip that can help you fight stress is to simply exercise. Exercising is great because it releases chemicals in your body that will make you feel better.</small></DIV></DIV>

    Changes to:

    <div style="padding: 5px; border-style: dashed none; border-width: 1px;">
    <div style=""><small><font color="FF0000"><b>TIP!</b></font> A great tip that can help you fight stress is to simply exercise. Exercising is great because it releases chemicals in your body that will make you feel better.</small></div>
    </div>

    http://wordpress.org/extend/plugins/fckeditor-for-wordpress-plugin/

  2. Glennf
    Member
    Posted 2 years ago #

    FYI

    I edited the file /wp-content/plugins/fckeditor-for-wordpress-plugin/ckeditor/config.js and added these entries and the editor still strips out HTML code and encoded characters out of the blog post.

    config.entities = false;
    config.entities_greek = false;
    config.entities_latin = false;

  3. Judge-Mentals
    Member
    Posted 2 years ago #

    I was having similar issues and like Glennf I had posted those config options into the config.js file, with no joy. I was actually trying to use a contact form plugin, and the CKEditor kept changing double quotes into the HTML equivalent, when saving in visual mode (which the client who owns the site was always doing).

    Anyway, I was actually using Dean's FCKEditor, and by switching to just CKEditor v3.6.2.1 as well as adding the config settings above into the config.js, I managed to resolve my issue.

    Glennf, if not already using that plugin, maybe worth a shot

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic