nhn / tui.editor

🍞📝 Markdown WYSIWYG Editor. GFM Standard + Chart & UML Extensible.

Home Page:http://ui.toast.com/tui-editor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Copy then paste creates additional newline character

shanpig opened this issue · comments

commented

Describe the bug

Before v3.0.0, using command+a to copy all, then use command+v to paste, will not create additional newline between text.
However, after v3.0.0, there is an additional newline character between consecutive pastes.

To Reproduce

Steps to reproduce the behavior:
Please look at this codesandbox

  1. check the dependency of tui.react-editor is at v2.5.4
  2. input anything, then press command+a -> command+v (control+a, control+v for windows)
  3. every consecutive pastes has no newlines
  4. switch dependency to v3.0.0 (or v3.0.0 alpha to be more specific)
  5. repeat 2.
  6. every consecutive pastes has a newline character

Expected behavior

every consecutive pastes has no newline characters

Screenshots

I think a demo gif would be more precise.
ezgif com-gif-maker (33)

Desktop (please complete the following information):

  • OS: macOS Monterey
  • Browser chrome 102.0.5005.61

@shanpig Thank you for the issue. we'll check it later. It is assumed that there is a problem in �ww mode.

commented

Is there any updates for this issue ? 🙏