Skip to content

Commit 9629eb6

Browse files
committed
fix: yjs service 주석 변경
1 parent a4f9000 commit 9629eb6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/backend/src/yjs/yjs.service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,12 +299,13 @@ export class YjsService
299299
}
300300

301301
// editor에서 paragraph 내부 text 노드의 text 값의 빈 문자열을 제거한다.
302+
// text 값이 빈 문자열이면 empty text nodes are not allowed 에러가 발생합니다.
302303
transformText(doc: any) {
303304
doc.content.forEach((paragraph) => {
304305
if (paragraph.type === 'paragraph' && Array.isArray(paragraph.content)) {
305306
paragraph.content.forEach((textNode) => {
306307
if (textNode.type === 'text' && textNode.text === '') {
307-
textNode.text = ' '; // 빈 문자열을 "a"로 대체
308+
textNode.text = ' '; // 빈 문자열을 공백으로 대체
308309
}
309310
});
310311
}

0 commit comments

Comments
 (0)