froala / wysiwyg-editor

The next generation Javascript WYSIWYG HTML Editor.
https://www.froala.com/wysiwyg-editor
Other
5.23k stars 665 forks source link

Ctrl-U shortcut not disabled when omitted from shortcutsEnabled #4743

Open earshinov opened 4 months ago

earshinov commented 4 months ago
Expected behavior.
 new FroalaEditor('div#froala-editor', {
   // Set the list of available shortcuts.
   shortcutsEnabled: ['bold', 'italic'],
   toolbarButtons: ['bold', 'italic', '|', 'help']
 })

Pressing Ctrl-U within the editor must not underline the selected text.

Actual behavior.

Still underlines. Probably caused by browser default, which Froala fails to override

Steps to reproduce the problem.

https://jsfiddle.net/earshinov/bvrsw1jx/

Editor version

4.1.4