2
0
dwelle 2 жил өмнө
parent
commit
9dab749dfd

+ 6 - 5
src/components/App.tsx

@@ -1348,13 +1348,14 @@ class App extends React.Component<AppProps, AppState> {
             return false;
           }
         }
+        return true;
         // don't render text element that's being currently edited (it's
         // rendered on remote only)
-        return (
-          !this.state.editingElement ||
-          this.state.editingElement.type !== "text" ||
-          element.id !== this.state.editingElement.id
-        );
+        // return (
+        //   !this.state.editingElement ||
+        //   this.state.editingElement.type !== "text" ||
+        //   element.id !== this.state.editingElement.id
+        // );
       });
 
     const selectionColor = getComputedStyle(

+ 2 - 1
src/element/textWysiwyg.tsx

@@ -304,7 +304,8 @@ export const textWysiwyg = ({
         ),
         textAlign,
         verticalAlign,
-        color: updatedTextElement.strokeColor,
+        // color: updatedTextElement.strokeColor,
+        color: "red",
         opacity: updatedTextElement.opacity / 100,
         filter: "var(--theme-filter)",
         maxHeight: `${editorMaxHeight}px`,