在使用 convertPosToMatchEditorMode() 函数将选定区域的坐标转换时,存在偏移,导致不准确。
作者: arrayListTwo创建于 2025年12月31日更新于 2025年12月31日
标签Bug
请描述错误情况
在 Toast UI Editor 中切换编辑器模式(WYSIWYG ↔ Markdown)时,文本选择的位置无法正确保持。通过使用 convertPosToMatchEditorMode() 方法转换选择位置后,通过使用 changeMode() 方法切换模式,然后使用 setSelection() 方法设置选择,选择位置仍然不正确或丢失。
内容来源: nhn/tui.editor