Skip to content

Commit

Permalink
Try: Disable text selection for post content placeholder block.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmussen committed Jan 24, 2024
1 parent 80b25d3 commit 3d1d971
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/block-library/src/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
4 changes: 4 additions & 0 deletions packages/block-library/src/post-content/editor.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Disable text selection in the post content placeholder.
.wp-block-post-content.wp-block-post-content {
user-select: none;
}

0 comments on commit 3d1d971

Please sign in to comment.