nhn / tui.editor

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

insert table in WYSIWYG mode How to insert a new blank row before or after the table? #3142

Open ygzhang-cn opened 1 year ago

ygzhang-cn commented 1 year ago

insert table in WYSIWYG mode How to insert a new blank row before or after the table? The cursor can execute exitTable() in the table: Ctrl+Enter, which is generally for ordinary user experience, can you add exitTable, addParagraphBeforeTable, addParagraphAfterTable options in the table right-click menu...

quoyi commented 1 year ago

You can find the "solution" in here: https://github.com/nhn/tui.editor/blob/master/apps/editor/src/__test__/unit/wysiwyg/keymap.spec.ts#L34C1-L41 and https://github.com/nhn/tui.editor/blob/master/apps/editor/src/__test__/unit/wysiwyg/keymap.spec.ts#L317