Skip to content

Conversation

Serranosoft
Copy link

This PR removes the redundant line that inserts a <br> after each image (issue related #414) :

exec('insertHTML', "<br/>");

  • Every image inserted is wrapped automatically in a <div> block.
  • The <div> ensures the cursor is placed correctly so the html will not be empty and the editor remains editable.
  • The previous <br> caused unexpected line break after every inserted image.
  • This change improves UX by allowing multiple images to be inserted consecutively

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant