vdc-editor 0.1.308 → 0.1.310
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/BulkSpellChecker-C8OKUhz7.mjs +5 -0
- package/lib/BulkSpellChecker-C8OKUhz7.mjs.map +1 -0
- package/lib/{index-Chb9-Wmq.mjs → index-Btp6KEZ8.mjs} +5271 -5210
- package/lib/{index-Chb9-Wmq.mjs.map → index-Btp6KEZ8.mjs.map} +1 -1
- package/lib/src/type.d.ts +37 -0
- package/lib/vdc-editor.mjs +1 -1
- package/lib/vdc-editor.umd.js +74 -74
- package/lib/vdc-editor.umd.js.map +1 -1
- package/package.json +1 -1
- package/lib/BulkSpellChecker-C05Rbkct.mjs +0 -5
- package/lib/BulkSpellChecker-C05Rbkct.mjs.map +0 -1
package/lib/src/type.d.ts
CHANGED
|
@@ -536,6 +536,43 @@ export interface EditorProps {
|
|
|
536
536
|
* @default 'paragraph'
|
|
537
537
|
*/
|
|
538
538
|
blockSeparatorPolicy?: 'paragraph' | 'line';
|
|
539
|
+
/**
|
|
540
|
+
* paste 시 HTML 변환 훅
|
|
541
|
+
* 라이브러리 내부의 mode 기반 sanitize(sanitizePastedHtmlForEditor / pasreHtml /
|
|
542
|
+
* 모바일 style-strip)가 끝난 다음 단계에서 호출되며, 반환된 HTML이 ProseMirror
|
|
543
|
+
* parser로 전달된다. 호출부에서 외부 이미지 차단, 도메인 화이트리스트 등
|
|
544
|
+
* 정책성 정화를 끼워 넣는 용도.
|
|
545
|
+
*
|
|
546
|
+
* 적용 컴포넌트: DigitalNewsEditor, ArticleEditor (desktop CoreEditorV2,
|
|
547
|
+
* mobile CoreEditorMoblie 모두).
|
|
548
|
+
*
|
|
549
|
+
* 주의: hook 이 throw 하면 PM 의 paste 처리가 중단되므로 방어적으로 구현할 것.
|
|
550
|
+
*
|
|
551
|
+
* @default undefined (no-op)
|
|
552
|
+
*/
|
|
553
|
+
transformPaste?: (html: string) => string;
|
|
554
|
+
/**
|
|
555
|
+
* copy 시 HTML 변환 훅
|
|
556
|
+
* editorProps.clipboardSerializer가 만든 직렬화 결과 HTML을 받아 변환된 HTML을
|
|
557
|
+
* 반환한다. 반환된 HTML이 clipboard의 text/html 페이로드로 들어간다.
|
|
558
|
+
* ProseMirror의 data-pm-slice wrapper 마커는 serializer 외부에서 부착되므로
|
|
559
|
+
* 본 hook 입력에는 포함되지 않는다(PM↔PM 라운드트립 안전).
|
|
560
|
+
*
|
|
561
|
+
* 적용 경로:
|
|
562
|
+
* - Cmd+C / Ctrl+C 표준 copy/cut 이벤트 → 적용
|
|
563
|
+
* - dragstart (drag-and-drop) → 적용
|
|
564
|
+
* - editor.commands.copyContent() / cutContent() (우클릭 / 모바일 컨텍스트
|
|
565
|
+
* 메뉴 / 버블 메뉴 복사 버튼) → **미적용** (Clipboard 익스텐션이 자체
|
|
566
|
+
* 직렬화 후 native/navigator 브릿지 사용). 정책 일관성이 필요한 호스트는
|
|
567
|
+
* 별도 대응 필요.
|
|
568
|
+
*
|
|
569
|
+
* 자세한 내용: docs/props-reference.md 의 "Paste / Copy 변환 훅" 섹션 참조.
|
|
570
|
+
*
|
|
571
|
+
* 주의: hook 이 throw 하면 PM 의 copy 처리가 중단되므로 방어적으로 구현할 것.
|
|
572
|
+
*
|
|
573
|
+
* @default undefined (no-op)
|
|
574
|
+
*/
|
|
575
|
+
transformCopy?: (html: string) => string;
|
|
539
576
|
/**
|
|
540
577
|
* 수퍼 프리뷰 영역 너비 고정 여부
|
|
541
578
|
* - true: 기본 폰트 크기 기준으로 너비를 고정하고 넘치는 콘텐츠는 잘림 (overflow hidden)
|
package/lib/vdc-editor.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as i, b as o, a as t, D as r, c as E, E as d, R as p, S, g as u, d as n, S as C, j as H, i as L, k as l, n as T, u as _, e as f, h as g, f as m } from "./index-
|
|
1
|
+
import { A as i, b as o, a as t, D as r, c as E, E as d, R as p, S, g as u, d as n, S as C, j as H, i as L, k as l, n as T, u as _, e as f, h as g, f as m } from "./index-Btp6KEZ8.mjs";
|
|
2
2
|
import "@vueuse/core";
|
|
3
3
|
export {
|
|
4
4
|
i as ArticleCompareEditor,
|