Draft > Editor: 에디터 이벤트 감지 및 변환 어댑터 구현 #31
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.
관련 이슈 번호
핵심 변경 사항 및 이유
PlateEditorAdapter
클래스 추가debounce
와throttle
함수 적용 (SHORT_REST, LONG_TYPING 이벤트 처리)deepEqual
함수 추가로 중복 이벤트 방지이외 기타 변경 사항 (선택)
리뷰 시 참고 사항 (선택)
PlateEditorAdapter
는 Plate.js의 operations를 분석하여 블록 레벨 변경사항을 감지합니다. 텍스트 입력은 디바운스/스로틀로 최적화되어 SHORT_REST(300ms 후)와 LONG_TYPING(5초 간격) 이벤트로 구분 처리됩니다.deepEqual
함수로 블록 상태 변경을 감지하여 중복 호출 방지