Skip to content

Editor wrapping new paragraphs in span tags #6327

@kendo-bot

Description

@kendo-bot

Bug report

Kendo Editor adds spans with no decoration on new paragraph - Video - https://www.screencast.com/t/qM9lX7RlPEr

Reproduction of the problem

Use the following Dojo

  1. Add the following to the HTML view of the editor: <span>Testing</span>
  2. Switch back to the WYSIWYG mode
  3. Hit enter twice to add two new line
  4. Enter some text (e.g. "Text from WYSIWYG view")
  5. Hit enter to add a new line
  6. Switch back to HTML view

Current behavior

Notice how it keeps replicating the spans - HTML view will show the following:

<p><span>Test</span></p>
<p><span>&nbsp;</span></p>
<p><span>Test from WYSIWYG view</span></p>
<p><span>&nbsp;</span></p>

Expected behavior

<p>Test</p>
<p>&nbsp;</p>
<p>Test from WYSIWYG view</p>
<p>&nbsp;</p>

Environment

  • Kendo UI version: 2021.2.511
  • Browser: all

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions