diff --git a/packages/editor/src/components/rich-text/format-edit.js b/packages/editor/src/components/rich-text/format-edit.js index 360f1ba424c5d3..a21a5dbadb851a 100644 --- a/packages/editor/src/components/rich-text/format-edit.js +++ b/packages/editor/src/components/rich-text/format-edit.js @@ -23,6 +23,7 @@ class Shortcut extends Component { onUse() { this.props.onUse(); + return false; } render() { diff --git a/packages/editor/src/components/rich-text/tinymce.js b/packages/editor/src/components/rich-text/tinymce.js index 217f40eaa024bc..c1d752a1d3c7ad 100644 --- a/packages/editor/src/components/rich-text/tinymce.js +++ b/packages/editor/src/components/rich-text/tinymce.js @@ -168,6 +168,16 @@ export default class TinyMCE extends Component { setup: ( editor ) => { this.editor = editor; this.props.onSetup( editor ); + + editor.on( 'init', () => { + // See https://github.com/tinymce/tinymce/blob/master/src/core/main/ts/keyboard/FormatShortcuts.ts + [ 'b', 'i', 'u' ].forEach( ( character ) => { + editor.shortcuts.remove( `meta+${ character }` ); + } ); + [ 1, 2, 3, 4, 5, 6, 7, 8, 9 ].forEach( ( number ) => { + editor.shortcuts.remove( `access+${ number }` ); + } ); + } ); }, } ); }