• Resolved janaa

    (@janaa)


    Hi Josh

    Thanks for creating this plugin. My big request (please please please) is to give us an option to prevent the stripping of html code (such as  ) when you go back from the Text Editor to the Visual Editor and file the page or post.

    It is enormously frustrating when you are trying to create html refinements, to find they are stripped out. And it is not practical to always stay in the Text Editor.

    I know you have an option to prevent paragraph breaks and <br>‘s from being stripped, but there are often other html codes that are necessary (such as using the &nbsp;).

    Best wishes

    https://www.ads-software.com/plugins/wp-edit/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Josh

    (@josh401)

    Hi Janna,

    Yeah, there is a lot going on behind the scenes when you switch from one view to the other; or when saving.

    I don’t have an option in the free version of WP Edit to easily allow the non-stripping of certain codes. However, if you use a child theme.. I can point you to some code you can experiment with yourself.

    Is this the only code you are seeing stripped out?

    Hi Josh,

    So i’m having problems in the free version of WP Edit with it stripping the regular p tags.

    If i upgrade to the Pro Version which i would happily do, will it solve this problem.

    Update – i installed the Demo version of WP Edit Pro and it does not solve the problem, or at least i can’t figure out how to configure it to do so.

    Plugin Author Josh

    (@josh401)

    Well, I can’t really discuss the pro version here. But, you’re welcome to stop by my support forum sometime ??

    What you need to do is enable the special character in the initialization process of the editor. Specifically, you’ll want to adjust the entities and entity_encoding values.

    The entities value is defaulted (by WordPress) to:
    38,amp,60,lt,62,gt

    We need to change it to include the non-breaking space:
    38,amp,60,lt,62,gt,?

    Next, the entity_encoding is defaulted (again, by WordPress) to:
    raw

    We need to change this to:
    named

    Now… HOW do you do this? You need to use the WorPress Tinymce filters. This is where the pro version comes in very handy.

    Alternatively, if you would like to do it manually… let me know, and I’ll point you towards some tutorials.

    Hi Josh,

    Thank you!! – i am heading over to the Pro forum!

    Plugin Author Josh

    (@josh401)

    My pleasure.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to preserve html code such as &nbsp ;’ is closed to new replies.