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.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
lint
Oleg Isonenc82577624035
diff --git a/apps/designer/app/canvas/features/wrapper-component/text-editor/editor-lazy.tsx b/apps/designer/app/canvas/features/wrapper-component/text-editor/editor-lazy.tsxindex a208f8248e..49e6ff5fff 100644--- a/apps/designer/app/canvas/features/wrapper-component/text-editor/editor-lazy.tsx+++ b/apps/designer/app/canvas/features/wrapper-component/text-editor/editor-lazy.tsx@@ -13,4 +13,3 @@ const EditorWithSuspense = (props: EditorProps) => {// Prevent rerender because in editing mode Editor controls the node.export const Editor = memo(EditorWithSuspense, () => true);-//export const Editor = EditorWithSuspense;diff --git a/apps/designer/app/canvas/features/wrapper-component/text-editor/editor.tsx b/apps/designer/app/canvas/features/wrapper-component/text-editor/editor.tsxindex 875c03e1ed..49d2292901 100644--- a/apps/designer/app/canvas/features/wrapper-component/text-editor/editor.tsx+++ b/apps/designer/app/canvas/features/wrapper-component/text-editor/editor.tsx@@ -9,9 +9,7 @@ import { InstancePlugin } from "./plugins/plugin-instance";import { ToolbarConnectorPlugin } from "./plugins/plugin-toolbar-connector";import { OnChangePlugin } from "./plugins/plugin-on-change";import { config } from "./config";-import { useCallback, useEffect } from "react";-import { useSelectedElement } from "~/canvas/shared/nano-states";-import { getInstanceIdFromElement } from "~/shared/dom-utils";+import { useCallback } from "react";export type EditorProps = {renderEditable: (ref?: (element: HTMLElement | null) => void) => JSX.Element;@@ -19,7 +17,7 @@ export type EditorProps = {onChange: (updates: ChildrenUpdates) => void;};-const useSetElement = (instance: Instance) => {+const useSetElement = () => {const [editor] = useLexicalComposerContext();return useCallback((element) => {@@ -30,7 +28,7 @@ const useSetElement = (instance: Instance) => {};const Editor = ({ instance, renderEditable, onChange }: EditorProps) => {- const refCallback = useSetElement(instance);+ const refCallback = useSetElement();const editable = renderEditable(refCallback);return (<>