WordPress.org

Ready to get started?Download WordPress

Forums

Preserved HTML Editor Markup
What happens when you deactivate this plugin? (3 posts)

  1. word nerd
    Member
    Posted 8 months ago #

    Since this plugin seems more of a stop-gap than a permanent solution, I'm considering trying to edit my functions.php code (per the instructions here).

    ...But I wonder: what will happen to pages and posts I've already edited while the Preserved HTML Editor Markup plugin was active?

    Will the extra paragraph tags and break tags remain in my posts and pages? Will I have reformat them? Will I have to reinstall WordPress?

    Also, what would would happen if I changed the "Configure New Line Behavior Per Post Type" settings again so that they only use paragraph tags instead of the current break tags?

    Any insights appreciated. Thanks!

    http://wordpress.org/plugins/preserved-html-editor-markup/

  2. Kurt Flint
    Member
    Posted 8 months ago #

    I hate to say it, there is only one real solution. You only use probably 8 tags 98% of the time, and 5 of those are h1-h5. Ditch the view tab. Its useless. I know it sounds cruel, but replacing that view tab with something that just does a clean preview of what you have in the text tab in an iFrame would be 100% more useful. Then replace the text tab with Ace or Codemirror for code color and completion(lots of plugins doing that already, but compatibility with the view tab tends to be low), put the codemirror/ace input field under a rectangle of that iFrame preview and script the iFrame to be refreshed every time the user presses the enter key in the edit window.

    Just like the editing programs we used to use about 20 years ago. I used to be very attached to one named something with "frog" in it. I also had a similar css editor at one time with the same layout that beats everything I have used since.

    Has anyone seen anything like this "in the wild"?

    As for your question, don't forget to back up first, and depending on how good you are with sql and regular expressions, it might be easiest if you have less than a couple hundred posts to prepare them by hand. Just xerox the sql table and modify them manually is what I would do, up to maybe 300 then I'd use queries and stored procedures, and after that if it is complex i'd just sift for tags and swap them out using php or C#. Regex builds character they say.

    Time's fun when you are having flies - the forgotten frog code editor

  3. Kurt Flint
    Member
    Posted 8 months ago #

    Oh, by the way, I thought of you, and maybe this could be handy: http://www.loudnoises.us/the-noise/the-truth-behind-wpautop/

    It comes with a good explanation of what not to do and why, as well as a good work around on a case by case basis. Less labor intensive than lovingly hand marking up all the entries (full disclosure, I work at a news organization and we often just use interns to insert paragraphs, breaks and divs in our posts. I kid you not. They get to learn layout, we get to keep programming).

Reply

You must log in to post.

About this Plugin

About this Topic