diff --git a/packages/editor/src/components/rich-text/tinymce.js b/packages/editor/src/components/rich-text/tinymce.js index ca8d0ea70521ae..dc6f7f46b38314 100644 --- a/packages/editor/src/components/rich-text/tinymce.js +++ b/packages/editor/src/components/rich-text/tinymce.js @@ -23,6 +23,7 @@ import { diffAriaProps, pickAriaProps } from './aria'; const { getSelection } = window; const { TEXT_NODE } = window.Node; +const { userAgent } = window.navigator; /** * Zero-width space character used by TinyMCE as a caret landing point for @@ -34,23 +35,6 @@ const { TEXT_NODE } = window.Node; */ export const TINYMCE_ZWSP = '\uFEFF'; -/** - * Determines whether we need a fix to provide `input` events for contenteditable. - * - * @param {Element} editorNode The root editor node. - * - * @return {boolean} A boolean indicating whether the fix is needed. - */ -function needsInternetExplorerInputFix( editorNode ) { - return ( - // Rely on userAgent in the absence of a reasonable feature test for contenteditable `input` events. - /Trident/.test( window.navigator.userAgent ) && - // IE11 dispatches input events for `` and `