This is a migrated thread and some comments may be shown as answers.

Two <span> merged into one <span>

2 Answers 9 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Denis
Top achievements
Rank 1
Denis asked on 31 Jul 2015, 10:59 AM

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 Answers, 1 is accepted

Sort by
0
Accepted
Stanimir
Telerik team
answered on 03 Aug 2015, 08:31 AM
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
0
Denis
Top achievements
Rank 1
answered on 03 Aug 2015, 12:53 PM

Hi,

 

Thank you!!

Tags
Editor
Asked by
Denis
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Denis
Top achievements
Rank 1
Share this question
or