Spaces:
Running
Running
try sandbox
Browse files
components/editor/index.tsx
CHANGED
@@ -385,7 +385,7 @@ export const AppEditor = ({
|
|
385 |
}}
|
386 |
htmlHistory={htmlHistory}
|
387 |
setPages={setPages}
|
388 |
-
iframeRef={iframeRef}
|
389 |
device={device}
|
390 |
setDevice={setDevice}
|
391 |
/>
|
|
|
385 |
}}
|
386 |
htmlHistory={htmlHistory}
|
387 |
setPages={setPages}
|
388 |
+
// iframeRef={iframeRef}
|
389 |
device={device}
|
390 |
setDevice={setDevice}
|
391 |
/>
|
components/editor/preview/index.tsx
CHANGED
@@ -17,7 +17,7 @@ import { htmlTagToText } from "@/lib/html-tag-to-text";
|
|
17 |
import { Page } from "@/types";
|
18 |
|
19 |
export const Preview = ({
|
20 |
-
html,
|
21 |
isResizing,
|
22 |
isAiWorking,
|
23 |
ref,
|
@@ -25,10 +25,10 @@ export const Preview = ({
|
|
25 |
currentTab,
|
26 |
iframeRef,
|
27 |
pages,
|
28 |
-
setCurrentPage,
|
29 |
isEditableModeEnabled,
|
30 |
-
|
31 |
-
|
32 |
html: string;
|
33 |
isResizing: boolean;
|
34 |
isAiWorking: boolean;
|
@@ -41,9 +41,7 @@ export const Preview = ({
|
|
41 |
isEditableModeEnabled?: boolean;
|
42 |
onClickElement?: (element: HTMLElement) => void;
|
43 |
}) => {
|
44 |
-
const [hoveredElement
|
45 |
-
null
|
46 |
-
);
|
47 |
|
48 |
// add event listener to the iframe to track hovered elements
|
49 |
// const handleMouseOver = (event: MouseEvent) => {
|
|
|
17 |
import { Page } from "@/types";
|
18 |
|
19 |
export const Preview = ({
|
20 |
+
// html,
|
21 |
isResizing,
|
22 |
isAiWorking,
|
23 |
ref,
|
|
|
25 |
currentTab,
|
26 |
iframeRef,
|
27 |
pages,
|
28 |
+
// setCurrentPage,
|
29 |
isEditableModeEnabled,
|
30 |
+
}: // onClickElement,
|
31 |
+
{
|
32 |
html: string;
|
33 |
isResizing: boolean;
|
34 |
isAiWorking: boolean;
|
|
|
41 |
isEditableModeEnabled?: boolean;
|
42 |
onClickElement?: (element: HTMLElement) => void;
|
43 |
}) => {
|
44 |
+
const [hoveredElement] = useState<HTMLElement | null>(null);
|
|
|
|
|
45 |
|
46 |
// add event listener to the iframe to track hovered elements
|
47 |
// const handleMouseOver = (event: MouseEvent) => {
|