Skip to content

Commit 4c5feda

Browse files
authored
Rich text: add comment on placeholder approach (#64945)
1 parent 05b8d27 commit 4c5feda

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/rich-text/src/to-tree.js

+2
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,8 @@ export function toTree( {
299299
if ( shouldInsertPadding && i === text.length ) {
300300
append( getParent( pointer ), ZWNBSP );
301301

302+
// We CANNOT use CSS to add a placeholder with pseudo elements on
303+
// the main block wrappers because that could clash with theme CSS.
302304
if ( placeholder && text.length === 0 ) {
303305
append( getParent( pointer ), {
304306
type: 'span',

0 commit comments

Comments
 (0)