File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -146,12 +146,10 @@ const Editor = ({ content }: { content: JSONContent[] | null }) => {
146146 editorProps : {
147147 handlePaste ( view , event ) {
148148 const html = event . clipboardData ?. getData ( 'text/html' ) ;
149- console . log ( 'html' , html ) ;
150149 if ( html ) {
151150 const parser = new DOMParser ( ) ;
152151 const doc = parser . parseFromString ( html , 'text/html' ) ;
153152 const body = doc . body ;
154- console . log ( 'body' , body ) ;
155153 body . innerHTML = body . innerHTML . replace ( / \uFEFF / g, '' ) . trim ( ) ;
156154
157155 body . querySelectorAll ( 'span[data-input-buffer]' ) . forEach ( ( span ) => {
@@ -204,7 +202,6 @@ const Editor = ({ content }: { content: JSONContent[] | null }) => {
204202 } ) ;
205203
206204 useEffect ( ( ) => {
207- console . log ( 'content' , editor ?. getHTML ( ) ) ;
208205 if ( content && editor ?. commands ) {
209206 editor ?. commands . setContent ( content ) ;
210207 }
@@ -230,7 +227,7 @@ const Editor = ({ content }: { content: JSONContent[] | null }) => {
230227 return ;
231228 }
232229 }
233-
230+
234231 if (
235232 editor . getHTML ( ) ===
236233 '<div class="component-text mt-10 relative px-[44px] mx-[-44px]"><p class="text-left text-[15px]" style="line-height: 1.8;"></p></div>'
You can’t perform that action at this time.
0 commit comments