Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removeFormat, insertOrderedList and insertUnorderedList hotkeys do not work #1079

Open
trymeouteh opened this issue Feb 10, 2024 · 1 comment

Comments

@trymeouteh
Copy link

Jodit Version: 4.0

Browser: FF & Chrome
OS: Linux
Is React App: False

Code

<link rel="stylesheet" href="node_modules/jodit/es2021/jodit.min.css">



<textarea id="myEditor"></textarea>



<script src="node_modules/jodit/es2021/jodit.min.js"></script>

<script>
    Jodit.make('#myEditor', {
        hotkeys: {
            redo: 'ctrl+z',
            undo: 'ctrl+y',
            indent: 'ctrl+]',
            outdent: 'ctrl+[',
            bold: 'ctrl+b',
            italic: 'ctrl+i',
            underline: 'ctrl-u',
            removeFormat: 'ctrl+shift+m',
            insertOrderedList: 'ctrl+shift+7',
            insertUnorderedList: 'ctrl+shift+8',
            openSearchDialog: 'ctrl+f',
            openReplaceDialog: 'ctrl+h',
        }
    });
</script>

Expected behavior:
Remove format, insert ordered list and insert unordered list hotkeys will work as intended

Actual behavior:
Remove format, insert ordered list and insert unordered list hotkeys do not work, even when I try changing hotkey commands and browsers.

@xdan
Copy link
Owner

xdan commented May 13, 2024

Hi, Use commandToHotkeys instead https://xdsoft.net/jodit/docs/modules/plugins_hotkeys.html#root

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants