appleple / lite-editor

A Modern WYSIWYG Editor especially for inline elements
https://appleple.github.io/lite-editor/
MIT License
176 stars 10 forks source link

Pasting text makes the editor extend past its initial size #29

Closed lmartins closed 6 years ago

lmartins commented 6 years ago

Hi, first of all, thanks for this awesome utility. I've noticed that if you past content into an editor window, it doesn't keep the editor initial width and will stretch all the way to fit the pasted content in a single line. Is there any way to get around this?

EDIT: I believe this is due to the fact that spaces are converted to the html entity: https://cl.ly/0m0j39210E3w

steelydylan commented 6 years ago

@lmartins sorry for the late reply I think it's been fixed already plz check And if it still has the same issue plz let me know again :)

lmartins commented 6 years ago

@steelydylan no worries, thank you for feedback. That did the trick, thanks!