Copied to clipboard

Flag this post as spam?

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


  • Inmedia 124 posts 176 karma points
    Oct 02, 2009 @ 12:12
    Inmedia
    0

    Horizontal ruler (<hr />) won't work in Richtexteditor...!?

    I am trying to use the hr-tag in the richtext editor, and when I do it shows up in the editor itself, but when I save it just disappears again.

    Has anyone had the same problem? And how do I solve it?

  • dandrayne 1138 posts 2262 karma points
    Oct 02, 2009 @ 12:15
    dandrayne
    0

    Does HR appear in the ValidElements list at \config\tinyMceConfig.config ?  It may just need to be added

    hr[class|style]

    Dan

  • mfeola 117 posts 221 karma points
    Apr 08, 2010 @ 17:11
    mfeola
    0

    its there in mine but it is also getting erased and just an empty P tag is left in its place.  when inserted it puts the HR tag in a P tag but if you put it in manually it works.  not very UI friendly

  • Johan Möller 83 posts 137 karma points
    May 25, 2010 @ 10:48
    Johan Möller
    0

    I'm looking into this aswell now. Is there any solution to this?

  • mfeola 117 posts 221 karma points
    Jun 03, 2010 @ 20:41
    mfeola
    0

    i found that this works

    #hr[class|style]

    but i am not sure what the pound sign means... so use at your own risk i guess?

  • Chris Dunn 210 posts 401 karma points
    Jun 03, 2010 @ 21:39
    Chris Dunn
    0

    # = Enables padding of empty elements. This will pad with &nbsp; if they are empty. For example, "#p".

    Here's a full list of what the control characters mean in validelements:

    http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/valid_elements

    -Chris

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies