We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4f9000 commit 9629eb6Copy full SHA for 9629eb6
apps/backend/src/yjs/yjs.service.ts
@@ -299,12 +299,13 @@ export class YjsService
299
}
300
301
// editor에서 paragraph 내부 text 노드의 text 값의 빈 문자열을 제거한다.
302
+ // text 값이 빈 문자열이면 empty text nodes are not allowed 에러가 발생합니다.
303
transformText(doc: any) {
304
doc.content.forEach((paragraph) => {
305
if (paragraph.type === 'paragraph' && Array.isArray(paragraph.content)) {
306
paragraph.content.forEach((textNode) => {
307
if (textNode.type === 'text' && textNode.text === '') {
- textNode.text = ' '; // 빈 문자열을 "a"로 대체
308
+ textNode.text = ' '; // 빈 문자열을 공백으로 대체
309
310
});
311
0 commit comments