When inserting an image, there is an extra <br> inserted after the image due to this line: exec('insertHTML', "<br/>");
This causes:
- Difficulty in placing images side by side.
- A degraded user experience when inserting multiple images consecutively.
- Therefore, the extra
<br> is redundant and produces unwanted line breaks.
Expected behavior:
- Images should be inserted without adding extra line breaks.
- The cursor should remain correctly after each image.