Skip to content

Commit c8303f5

Browse files
authored
Merge pull request #13 from Moaguide-develop:feat/editor
fix: 로그 제거
2 parents 5566984 + ef933cc commit c8303f5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/components/editor/Editor.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff 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>'

0 commit comments

Comments
 (0)