fix: 에디터 모드 전환 시 본문 사라짐 수정#290
Merged
Merged
Conversation
WYSIWYG ↔ Markdown/HTML 모드 전환 시 {#if} 블록이 TipTap 에디터의
DOM 요소를 파괴하여, 다시 WYSIWYG로 돌아올 때 에디터가 이전(파괴된)
DOM을 참조하면서 본문이 사라지는 버그 수정.
hidden 속성으로 변경하여 DOM 요소를 유지하면서 표시/숨김 전환.
sdk-kr
added a commit
that referenced
this pull request
Mar 7, 2026
## Summary
- WYSIWYG ↔ Markdown/HTML 모드 전환 후 WYSIWYG로 돌아올 때 본문이 사라지는 버그 수정
- 원인: `{#if}` 블록이 TipTap 에디터의 DOM 요소를 파괴 → 에디터가 파괴된 DOM 참조
- 수정: `hidden` 속성으로 변경하여 DOM 요소 유지
## Test plan
- [ ] 글 작성 페이지에서 내용 입력
- [ ] WYSIWYG → Markdown 전환: 마크다운으로 변환되는지 확인
- [ ] Markdown → WYSIWYG 전환: 본문이 정상 표시되는지 확인
- [ ] WYSIWYG → HTML 전환 → WYSIWYG 복귀: 본문 유지 확인
- [ ] 모드 전환 후 글 저장 정상 동작 확인
Co-authored-by: Deploy Bot <deploy@damoang.net>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
{#if}블록이 TipTap 에디터의 DOM 요소를 파괴 → 에디터가 파괴된 DOM 참조hidden속성으로 변경하여 DOM 요소 유지Test plan