From 3d1d9711697ffd425df5f83a16b69d9a5f1e27a5 Mon Sep 17 00:00:00 2001 From: jasmussen Date: Wed, 24 Jan 2024 10:28:54 +0100 Subject: [PATCH] Try: Disable text selection for post content placeholder block. --- packages/block-library/src/editor.scss | 1 + packages/block-library/src/post-content/editor.scss | 4 ++++ 2 files changed, 5 insertions(+) create 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 e3642868034a5a..7151051f545441 100644 --- a/packages/block-library/src/editor.scss +++ b/packages/block-library/src/editor.scss @@ -54,6 +54,7 @@ @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"; diff --git a/packages/block-library/src/post-content/editor.scss b/packages/block-library/src/post-content/editor.scss new file mode 100644 index 00000000000000..626774697aec5f --- /dev/null +++ b/packages/block-library/src/post-content/editor.scss @@ -0,0 +1,4 @@ +// Disable text selection in the post content placeholder. +.wp-block-post-content.wp-block-post-content { + user-select: none; +}