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

한글 엔터입력시 마지막 글자 사라짐

cvcvcx opened this issue · comments

Summary

  • 에디터에서 한글 입력시 엔터로 바로 줄을 넘어가면 마지막 글자가 사라지는 문제
  • textarea에서 엔터로 넘어갈 때는 발생하지 않는 것으로 보아 ToastUI 문제라고 판단됩니다.
  • 윈도우즈에서는 발생하지 않는 것으로 보아 맥 한글입력 관련 버그로 보이기도 합니다.

Screenshots

한글삭제확인용

Version

  • Apple M1 MacBook Air
  • macOs : Sonoma 14.2.1
  • toastUI Editor : 3.2.2
  • chrome : 120.0.6099.109 (arm64)

Additional context

Test.html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="https://uicdn.toast.com/editor/latest/toastui-editor.min.css" />
    <title>Document</title>
</head>
<body>
    <h1>Hello!</h1>
    <div id="editor"></div>
    <textarea name="" id="" cols="30" rows="10"></textarea>
    <script src="https://uicdn.toast.com/editor/latest/toastui-editor-all.min.js"></script>
    <script src="./test.js"></script>
</body>
</html>

Test.js

const editor = new toastui.Editor({
    el: document.querySelector('#editor'),
    previewStyle: 'vertical',
    height: '500px',
    initialValue: ''
  });