WordPress.org

Ready to get started?Download WordPress

Forums

Front-end Editor
is stripped (2 posts)

  1. Olotiriel
    Member
    Posted 3 years ago #

    When I use Front-end Editor it automatically strips any
    tags (I am using them with the Auto Formatting plugin). It strips these before making any edits or saving.

    For instance, this:

    <p style="text-align: center;">To get in touch, you can call Chris on <strong>0123 456 789 </strong></p>
    <p style="text-align: center;">or <a href="mailto:email@blahblah.com">send an email</a> to: <strong>email@blahblah.com</strong></p>
    <br />
    <p style="text-align: center;">If you prefer, you can also fill out the contact form below:</p><br />
    
    [customcontact form=2]

    becomes this:

    <p style="text-align: center;">To get in touch, you can call Chris on <strong>0123 456 789 </strong></p>
    <p style="text-align: center;">or <a href="mailto:email@blahblah.com">send an email</a> to: <strong>email@blahblah.com</strong></p>
    <p style="text-align: center;">If you prefer, you can also fill out the contact form below:</p>
    
    [customcontact form=2]

    I need a client to be able to make small edits in the simplest way possible (and I love this plugin), but not being able to use Auto Formatting would make the site look bad.

    Is there a fix for this, or a suggestion for a different way of reaching the same result?

    Thank you!

  2. scribu
    Member
    Plugin Author

    Posted 3 years ago #

    That is caused by WordPress' wpautop() function.

    Don't know what the "Auto Formatting plugin" is.

    A different way to achieve the same result would be to not need the
    tags at all: apply margins to the <p> tags.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic