Wordpress Editor Question

by cma01
4 replies
  • WEB DESIGN
  • |
I've been using the Tiny MCE Advanced plugin for Wordpress and selecting the option to keep Wordpress from filtering the post HTML.

With one of the last upgrades, I think this option broke. When I try to select the option, it doesn't save.

The visual editor now strips out any div tags and even CSS classes that are added by the editor itself.

It adds a span class as an underline instead of using the u tag. It converts bold tags (b) that I manually enter to strong. I have these styled to display differently in my posts so I want them to stay that way.

This is absolutely driving me crazy!

I've tried these plugins:
  • Add Raw HTML
  • WP Super Edit
  • Tiny MCE Valid Elements
  • Visual Code Editor

None of these fix the problem.

Does anyone know how to fix this?
#editor #question #wordpress
  • Profile picture of the author Istvan Horvath
    I never use any Visual gizmo... just straight html editor AND (this is important!) I use XHTML compliant tags. Which means exactly what WP or the editor is doing with your non-conform tags:
    HTML b - XHTML strong etc.

    XHTML Tutorial
    Signature

    {{ DiscussionBoard.errors[3171870].message }}
    • Profile picture of the author cma01
      Well, I like the visual gizmos.

      It's just aggravating. The thing that drives me up the wall is the editor inserting the span class instead of the underline.

      The other thing too is that for clients, I really need to figure this out. I'm just switching a client over from Typepad and their nightmare of a WYSIWYG. She loves those Alex buttons and I converted it to CSS rather than using javascript . . . but I have to use a div tag to make it display the same. If she edits the post at all, it will wipe it.

      For my own pages, if I edit it and save it in the HTML mode, it's fine. But if I switch it over to visual, it converts the tags.

      On other platforms, I can configure the settings for the editor itself. But other than the, "don't strip tags" box (which isn't working) I don't have that option. But I think it must have had something to do with a Wordpress core upgrade, because nothing has been changed on that particular plugin for almost a year and the other plugins that are supposed to allow HTML don't work either.
      Signature
      "Wise men talk because they have something to say; fools, because they have to say something."
      ~ Plato
      {{ DiscussionBoard.errors[3172199].message }}
  • Profile picture of the author SteveJohnson
    The Tiny MCE Advanced plugin hasn't been updated for over a year - you're lucky it works at all, in light of the internal changes that WP 3.0 introduced.

    It's just aggravating. The thing that drives me up the wall is the editor inserting the span class instead of the underline.
    That's a feature of the plugin - inline CSS styles, XHTML-compliant. <b>, <i>, and <u> tags are going the way of the dodo bird. They are presentational, not semantic, tags.

    The switching of the tags, and mangling of your html code, is the price that's paid for having a WYSIWYG editor. It's an either/or thing, unfortunately. I don't know that there's a good solution. The client either has to learn some HTML or do without some of the things they say they want.

    Been there, done that, I feel your pain
    Signature

    The 2nd Amendment, 1789 - The Original Homeland Security.

    Gun control means never having to say, "I missed you."

    {{ DiscussionBoard.errors[3172577].message }}
    • Profile picture of the author cma01
      Crap, I think I found what "broke" the way it worked before:

      What's new in WordPress 3.0.4:
      · It fixes a core security bug in the HTML sanitation library, called KSES. The release is "critical."

      An update to Tiny MCE isn't scheduled until 3.1
      Signature
      "Wise men talk because they have something to say; fools, because they have to say something."
      ~ Plato
      {{ DiscussionBoard.errors[3172778].message }}

Trending Topics