diff --git a/package.json b/package.json index 9e88f177c6..162b50448e 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,7 @@ "moment": "^2.20.1", "vfile-message": "^2.0.2", "isemail@3.2.0": "patch:isemail@npm:3.2.0#./patches/isemail-npm-3.2.0-browserified.patch", - "react-codemirror2@7.2.1": "patch:react-codemirror2@npm:7.2.1#./patches/react-codemirror2-npm-7.2.1-browserified.patch", - "@ckeditor/ckeditor5-engine@^16.0.0": "patch:@ckeditor/ckeditor5-engine@npm:16.0.0#./patches/@ckeditor-ckeditor5-engine-npm-16.0.0-placeholder.patch" + "react-codemirror2@7.2.1": "patch:react-codemirror2@npm:7.2.1#./patches/react-codemirror2-npm-7.2.1-browserified.patch" }, "scripts": { "lint": "tsc --noemit && stylelint 'packages/*/src/**/*.css' && yarn eslint 'packages/*/src/**/*.{js,jsx,ts,tsx}'", diff --git a/patches/@ckeditor-ckeditor5-engine-npm-16.0.0-placeholder.patch b/patches/@ckeditor-ckeditor5-engine-npm-16.0.0-placeholder.patch deleted file mode 100644 index ccf8c1751b..0000000000 --- a/patches/@ckeditor-ckeditor5-engine-npm-16.0.0-placeholder.patch +++ /dev/null @@ -1,22 +0,0 @@ -diff --git a/src/view/placeholder.js b/src/view/placeholder.js -index ec83640d4f7d12d8278c921a3c641917543ca859..09e96933b392f38d079ac3126ead49690e408228 100755 ---- a/src/view/placeholder.js -+++ b/src/view/placeholder.js -@@ -155,16 +155,7 @@ export function needsPlaceholder( element ) { - const isEmptyish = !Array.from( element.getChildren() ) - .some( element => !element.is( 'uiElement' ) ); - -- // If the element is empty and the document is blurred. -- if ( !doc.isFocused && isEmptyish ) { -- return true; -- } -- -- const viewSelection = doc.selection; -- const selectionAnchor = viewSelection.anchor; -- -- // If document is focused and the element is empty but the selection is not anchored inside it. -- if ( isEmptyish && selectionAnchor && selectionAnchor.parent !== element ) { -+ if ( isEmptyish ) { - return true; - } -