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

Configuring Keymaps To Another #3122

Open tengkuizdihar opened 1 year ago

tengkuizdihar commented 1 year ago

Summary

Disabling ctrl+s for strikethrough because I'm using it to save my documents.

Version

Straight from my package.json "@toast-ui/editor": "^3.2.2", "@toast-ui/react-editor": "^3.2.3".

Additional context

First of all, thank you for making this very simple to use WYSIWYG markdown editor. I'm using toast-ui for react and I'm having difficulty on disabling/configuring ctrl+s. I used it as simple as possible.

<Editor
    height="100%"
    ref={editorRef}
    previewStyle="vertical"
    initialEditType="wysiwyg"
    useCommandShortcut={true}
    theme='dark'
/>