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.

not using theme

Oleg Isonen3e09f577aced
diff --git a/app/canvas/features/wrapper-component/use-css.tsx b/app/canvas/features/wrapper-component/use-css.tsx
index 8dab5565ed..45fe631a47 100644
--- a/app/canvas/features/wrapper-component/use-css.tsx
+++ b/app/canvas/features/wrapper-component/use-css.tsx
@@ -55,6 +55,7 @@ const defaultStyle = {
// When double clicking into an element to edit text, it should not select the word.
userSelect: "none",
},
+ // Text Editor wraps each line into a p, so we need to make sure there is no jump between regular rendering and editing
"& p": {
margin: 0,
},
diff --git a/app/shared/text-editor/config.ts b/app/shared/text-editor/config.ts
index 6eb55c710c..f68fc5d775 100644
--- a/app/shared/text-editor/config.ts
+++ b/app/shared/text-editor/config.ts
@@ -1,9 +1,7 @@
import { InstanceNode } from "./nodes/node-instance";
-import { darkTheme } from "./themes/dark";
export const config = {
namespace: "example",
- theme: darkTheme,
onError(error: Error) {
throw error;
},
diff --git a/app/shared/text-editor/themes/dark.ts b/app/shared/text-editor/themes/dark.ts
deleted file mode 100644
index 5d2276a381..0000000000
--- a/app/shared/text-editor/themes/dark.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-export const darkTheme = {
- ltr: "ltr",
- rtl: "rtl",
- placeholder: "editor-placeholder",
- paragraph: "editor-paragraph",
-};