260907_01_ENH: 에디터 이미지맵 보존 및 SMS 미리보기 문구 지원
This commit is contained in:
@@ -236,8 +236,12 @@ import { KriScatterChart } from '@/components/chart'
|
||||
value={html}
|
||||
onChange={setHtml}
|
||||
onImageUpload={async (file) => upload(file)}
|
||||
enableImageMap
|
||||
htmlSanitizer={sanitizeForServerPolicy}
|
||||
getWysiwygCompatibility={checkWysiwygCompatibility}
|
||||
smsMaxBytes={90}
|
||||
lmsMaxBytes={2000}
|
||||
smsPreviewSuffix={verificationNotice}
|
||||
toolbar={{ image: true, table: false, html: true }}
|
||||
/>
|
||||
```
|
||||
@@ -246,3 +250,7 @@ import { KriScatterChart } from '@/components/chart'
|
||||
- 이미지 업로드 함수는 URL 문자열 또는 `{ url }`을 반환할 수 있습니다.
|
||||
- `toolbar={false}`로 toolbar 전체를 숨길 수 있습니다.
|
||||
- SMS/LMS 기본 제한은 각각 90/2,000바이트입니다.
|
||||
- `enableImageMap`은 `map`, `area`, `img.usemap` 보존을 선택적으로 활성화합니다.
|
||||
- `htmlSanitizer`로 서비스의 서버 정책에 맞는 정제 함수를 주입할 수 있습니다.
|
||||
- `getWysiwygCompatibility`가 `compatible: false`를 반환하면 HTML 원문을 유지하고 WYSIWYG 전환을 비활성화합니다.
|
||||
- `smsPreviewSuffix`는 저장 본문에는 포함하지 않고 SMS 미리보기와 바이트 계산에만 반영합니다.
|
||||
|
||||
Reference in New Issue
Block a user