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.

fix: support copying text from code editor (#3419)

Bogdan Chadkin219c3f02b9b6
diff --git a/apps/builder/app/builder/shared/code-editor-base.tsx b/apps/builder/app/builder/shared/code-editor-base.tsx
index 23a4e1d5d2..8209aeab39 100644
--- a/apps/builder/app/builder/shared/code-editor-base.tsx
+++ b/apps/builder/app/builder/shared/code-editor-base.tsx
@@ -72,6 +72,8 @@ const editorContentStyle = css({
paddingBottom: 4,
paddingRight: theme.spacing[2],
paddingLeft: theme.spacing[3],
+ // required to support copying selected text
+ userSelect: "text",
"&:focus-within": {
borderColor: theme.colors.borderFocus,
outline: `1px solid ${theme.colors.borderFocus}`,