• Hi there,

    I have seen that you are a lead developer on trac, so I thought I contact you directly via this forum instead of posting on trac. This is a known problem:

    “the wordpress editor strips tags when switching from visual to text mode. How do you prevent this from happening? It’s simple tags like <p><span> that are getting stripped.
    It’s a well known issue and I am looking for a non-hacky, non disable the visual editor, non use this plugin answer.”

    Basically, I do not need all the functionality, that your plugin gives me, all I want is to retain my tags with the existing wordpress editor. Is that possible? And if yes, how would I go about it? Is there a filter/hook that I can use?

    Many thanks,
    Sascha

    https://www.ads-software.com/plugins/tinymce-advanced/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Andrew Ozz

    (@azaozz)

    I guess you’re talking about TinyMCE stripping empty tags. There are couple of tickets on trac about that too. This is the “normal” behavior of TinyMCE: it removes “empty” paragraphs where empty means no text or other visible elements. It is possible to simulate non-empty by adding a “zero-width” character into these spans. Then the test for “empty” will fail and the spans will remain.

    One such character is &shy;. However since TinyMCE converts all entities to UTF-8 chars, it will be converted and pretty much completely invisible. I’ve been thinking what would be the best way to fix this, if you have any ideas, please comment on the trac tickets.

    Definately about time that TinyMCE is updated to accomodate SCHEMA.ORG code.. don’t u think it should be top priority? Our website rankings jumped as soon as this was implemented..(very painfully implemented!)

    Plugin Author Andrew Ozz

    (@azaozz)

    I think there is a ticket for that on trac. Should be fixed/added upstream in TinyMCE though.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How do you prevent the WordPress editor from stripping out certain tags?’ is closed to new replies.