nhn / tui.editor

🍞📝 Markdown WYSIWYG Editor. GFM Standard + Chart & UML Extensible.
http://ui.toast.com/tui-editor
MIT License
17.16k stars 1.75k forks source link

Vue-editor: In Firefox, spaces are removed while typing at the end of the line. #2797

Open Ninili opened 1 year ago

Ninili commented 1 year ago

Describe the bug

Only in Firefox (not chrome, for example), if you type inside the editor, all the spaces get "swallowed" at the end of each line. This doesn't happen in the non-vue editor, only in the vue version.

To Reproduce

Steps to reproduce the behavior:

  1. Open vue-editor in firefox, configured to show WYSIWYG mode.
  2. Type text that includes spaces.

Expected behavior

Should behave like in Chrome, no spaces being removed.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Ninili commented 1 year ago

Actually found a workaround!

This bug is gone, when I use import '@toast-ui/editor/dist/toastui-editor.css'; instead of import @toast-ui/editor/dist/toastui-editor-only.css';. So maybe something is missing in the "editor-only" css file then.

jwlee1108 commented 1 year ago

@Ninili

Thank you for the issue. we'll check it later