Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

When double clicking into an element to edit text, it should not select the word.

Oleg Isonen9c175024e597
diff --git a/app/canvas/features/wrapper-component/use-css.tsx b/app/canvas/features/wrapper-component/use-css.tsx
index 492aa741a3..70cdd674b3 100644
--- a/app/canvas/features/wrapper-component/use-css.tsx
+++ b/app/canvas/features/wrapper-component/use-css.tsx
@@ -51,6 +51,10 @@ const voidElements =
const rootElement = "body > div";
const defaultStyle = {
+ "&": {
+ // When double clicking into an element to edit text, it should not select the word.
+ userSelect: "none",
+ },
[`&:not(${voidElements}):not(${rootElement}):empty`]: {
outline: "1px dashed #555",
outlineOffset: -1,