Skip to content

Inserting media in SunEditor 3 beta20 creates an extra element #1568

@EricBCoding

Description

@EricBCoding

Describe the bug
When inserting an image (or other media, such as a drawing) into the editor, it will produce an extra element after the media. This element appears to take on the properties (i.e. block type, styles, classes) of the element that should follow the media. It contains a <br>.

To Reproduce
Steps to reproduce the behavior:

  1. Go to official demo: http://suneditor.com/v3/cdn_test.html
  2. Enter some basic text, change it from paragraph to a heading to make the problem more obvious
  3. Insert media
  4. Check source code

Expected behavior
Inserting media should only produce HTML required for the media

Screenshots
Here is a video recording:

brave_ARegtUrFqj.mp4

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser brave
  • Version 1.80.122

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions