Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Garry Bain 149 posts 124 karma points
    Aug 17, 2009 @ 13:55
    Garry Bain
    0

    TinyMCE stripping out empty span

    Hi everyone,

    I need to be able to leave empty span tags in my mark-up so I can use an image replacement technique - in order ot cater for screen reader users.

    How can I amend the tinyMCE config file to leave in this empty tags?

    Thanks, Garry.

  • Peter Dijksterhuis 1442 posts 1722 karma points
    Aug 17, 2009 @ 14:11
    Peter Dijksterhuis
    0

    Hi,

    last week we had the same question about empty td's. My guess is that that solution will work for span as well. (http://our.umbraco.org/forum/using/ui-questions/3408-richtextedtior-acting-strange?p=0#comment11811)

    Open the tinyMceConfig.config file (in the config-folder). At the bottom is the validElements part. Look for the -span and change that to #span. This will allow you to use empty span-tags (note that a nbsp will be put in there).

    HTH,

    Peter

  • Garry Bain 149 posts 124 karma points
    Aug 17, 2009 @ 14:53
    Garry Bain
    0

    Excellent, thanks Peter.

Please Sign in or register to post replies

Write your reply to:

Draft