Two <span> merged into one <span>

3 posts, 1 answers
  1. Denis
    Denis avatar
    2 posts
    Member since:
    Jul 2015

    Posted 31 Jul 2015 Link to this post

    Scenario:

    1. Change Editor to the "HTML" mode.

    2. Paste the following text:

    <span class="button primary">
    <span style="color: red">
    test
    </span>
    </span>

    3. Change to the "Design" mode.

    4. Change to the "HTML" mode.

    Actual Result:

    <span class="button primary" style="color: red;">
    test
    </span>

     

    Two <span> tags merged into the one. Is it expected?​

  2. Answer
    Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 03 Aug 2015 Link to this post

    Hi,

    This behavior is expected and is a result from the application of the OptimizeSpans content filter. Review the following online demo Editor - Built-in Content Filters and test the behavior if you disable the OptimizeSpans filter.



    Regards,
    Stanimir
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Denis
    Denis avatar
    2 posts
    Member since:
    Jul 2015

    Posted 03 Aug 2015 in reply to Stanimir Link to this post

    Hi,

     

    Thank you!!

Back to Top