-
-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/8.4' into 9.0
# Conflicts: # README.md
- Loading branch information
Showing
8 changed files
with
85 additions
and
10 deletions.
There are no files selected for viewing
Binary file added
BIN
+420 KB
.yarn/cache/@ckeditor-ckeditor5-engine-patch-dfc8c266c9-0ca241d6d2.zip
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,8 @@ | |
"moment": "^2.20.1", | ||
"vfile-message": "^2.0.2", | ||
"[email protected]": "patch:isemail@npm:3.2.0#./patches/isemail-npm-3.2.0-browserified.patch", | ||
"[email protected]": "patch:react-codemirror2@npm:7.2.1#./patches/react-codemirror2-npm-7.2.1-browserified.patch" | ||
"[email protected]": "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" | ||
}, | ||
"scripts": { | ||
"lint": "tsc --noemit && stylelint 'packages/*/src/**/*.css' && yarn eslint 'packages/*/src/**/*.{js,jsx,ts,tsx}'", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 13 additions & 4 deletions
17
packages/neos-ui-ckeditor5-bindings/src/placeholder.vanilla-css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,17 @@ | ||
.ck.ck-placeholder:before, .ck .ck-placeholder:before { | ||
content: attr(data-placeholder); | ||
.ck.ck-placeholder:after, .ck .ck-placeholder { | ||
display: inline-flex; | ||
} | ||
|
||
/* See ckeditor/ckeditor5#469. */ | ||
pointer-events: none; | ||
.ck .ck-placeholder br[data-cke-filler="true"] { | ||
display: none; | ||
} | ||
|
||
.ck.ck-placeholder:after, .ck .ck-placeholder:after { | ||
content: attr(data-placeholder); | ||
pointer-events: none; | ||
color: #999; | ||
} | ||
|
||
.ck.ck-read-only .ck-placeholder:after { | ||
display: none; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
patches/@ckeditor-ckeditor5-engine-npm-16.0.0-placeholder.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
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; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters