From ea41fdd0e3674c243063361d00383d9456da42d8 Mon Sep 17 00:00:00 2001 From: Ella Date: Wed, 25 Sep 2024 14:30:33 -0700 Subject: [PATCH 1/4] Remove user-select:text --- packages/block-editor/src/components/block-list/content.scss | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/block-editor/src/components/block-list/content.scss b/packages/block-editor/src/components/block-list/content.scss index c5fda109d8b67..b3c2427df2808 100644 --- a/packages/block-editor/src/components/block-list/content.scss +++ b/packages/block-editor/src/components/block-list/content.scss @@ -117,11 +117,9 @@ _::-webkit-full-page-media, _:future, :root .has-multi-selection .block-editor-b overflow-wrap: break-word; pointer-events: auto; - user-select: text; &.is-editing-disabled { pointer-events: none; - user-select: none; } &.has-negative-margin { From 3e1f91d92a82ae84830c72f495d22a7a1d35bddb Mon Sep 17 00:00:00 2001 From: Ella Date: Wed, 2 Oct 2024 14:43:37 +0200 Subject: [PATCH 2/4] Remove select none rule on post content --- packages/block-library/src/post-content/editor.scss | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/block-library/src/post-content/editor.scss b/packages/block-library/src/post-content/editor.scss index 626774697aec5..9d6f459ad8928 100644 --- a/packages/block-library/src/post-content/editor.scss +++ b/packages/block-library/src/post-content/editor.scss @@ -1,4 +1 @@ -// Disable text selection in the post content placeholder. -.wp-block-post-content.wp-block-post-content { - user-select: none; -} +/**/ From 8b57e5f6b0c128646d9843e68632115700a0cf9d Mon Sep 17 00:00:00 2001 From: Ella Date: Thu, 3 Oct 2024 14:11:40 +0200 Subject: [PATCH 3/4] remove another rule --- .../block-editor/src/components/block-list/content.scss | 8 -------- 1 file changed, 8 deletions(-) diff --git a/packages/block-editor/src/components/block-list/content.scss b/packages/block-editor/src/components/block-list/content.scss index b3c2427df2808..6a88813b0c604 100644 --- a/packages/block-editor/src/components/block-list/content.scss +++ b/packages/block-editor/src/components/block-list/content.scss @@ -91,14 +91,6 @@ _::-webkit-full-page-media, _:future, :root .has-multi-selection .block-editor-b } } - // Ensure an accurate partial text selection. - // To do this, we disable text selection on the main container, then re-enable it only on the - // elements that actually get selected. - // To keep in mind: user-select is currently inherited to all nodes inside. - .has-multi-selection & { - user-select: none; - } - // Re-enable it on components inside. [class^="components-"] { user-select: text; From d6965b5a642cf654fd49c01596082b90f2dd8b37 Mon Sep 17 00:00:00 2001 From: Ella Date: Thu, 3 Oct 2024 14:13:27 +0200 Subject: [PATCH 4/4] Remove file --- packages/block-library/src/editor.scss | 1 - packages/block-library/src/post-content/editor.scss | 1 - 2 files changed, 2 deletions(-) delete mode 100644 packages/block-library/src/post-content/editor.scss diff --git a/packages/block-library/src/editor.scss b/packages/block-library/src/editor.scss index 0669a082b1086..a16d5a6c2c69c 100644 --- a/packages/block-library/src/editor.scss +++ b/packages/block-library/src/editor.scss @@ -55,7 +55,6 @@ @import "./query-pagination-numbers/editor.scss"; @import "./post-featured-image/editor.scss"; @import "./post-comments-form/editor.scss"; -@import "./post-content/editor.scss"; @import "./editor-elements.scss"; :root .editor-styles-wrapper { diff --git a/packages/block-library/src/post-content/editor.scss b/packages/block-library/src/post-content/editor.scss deleted file mode 100644 index 9d6f459ad8928..0000000000000 --- a/packages/block-library/src/post-content/editor.scss +++ /dev/null @@ -1 +0,0 @@ -/**/