Copied to clipboard

Flag this post as spam?

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


  • Thomas Hansen 102 posts 305 karma points
    Jul 26, 2018 @ 12:19
    Thomas Hansen
    0

    Rich text editor - adds <span> arround text

    When I render text from the RTE it adds a span around the text? So it looks like this:

    <p><span>Lorem..</span></p>
    

    I'm rendering it like this:

    @Html.Raw(Model.TextboxWithBgImage.GetPropertyValue("text"))
    

    Anyone that now why?

  • Jan Skovgaard 11241 posts 23387 karma points MVP 6x admin c-trib
    Jul 26, 2018 @ 12:40
    Jan Skovgaard
    1

    Hi Thomas

    Not quite sure why it happens but it seems to be a known issue - There is an issue about it here at least http://issues.umbraco.org/issue/U4-8543 and it does not seem like it has been fixed yet though.

    Even though it's really annoying to have markup rendered that you did not inject yourself this should be fairly harmless since it won't mess up any styling unless you use some very broad targeting selectors of course :)

    /Jan

  • Thomas Hansen 102 posts 305 karma points
    Jul 26, 2018 @ 12:47
    Thomas Hansen
    0

    Hi Jan

    Thanks :) !

    Weird that it hasn't been fixed yet after two years. I will try to look for a fix.

Please Sign in or register to post replies

Write your reply to:

Draft