@ones-editor/editor 2.9.8-beta.7 → 2.9.8-beta.9
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/@ones-editor/cke-html/package.json +7 -0
- package/@ones-editor/cke-html/src/html/cke-html.d.ts +4 -0
- package/@ones-editor/cke-html/src/html/combine-html.d.ts +2 -0
- package/@ones-editor/cke-html/src/html/comment.d.ts +6 -0
- package/@ones-editor/cke-html/src/html/converter.d.ts +7 -0
- package/@ones-editor/cke-html/src/html/data-helper/link-data.d.ts +0 -0
- package/@ones-editor/cke-html/src/html/image.d.ts +4 -0
- package/@ones-editor/cke-html/src/html/link.d.ts +2 -0
- package/@ones-editor/cke-html/src/html/markdown.d.ts +2 -0
- package/@ones-editor/cke-html/src/html/mention.d.ts +4 -0
- package/@ones-editor/cke-html/src/index.d.ts +2 -0
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui-base/src/command-bar/types.d.ts +5 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +306 -18
- package/package.json +1 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { DocObject, OnesEditor } from '../../../../@ones-editor/editor';
|
|
2
|
+
export declare function ckeHtml2Doc(html: string): DocObject;
|
|
3
|
+
export declare function injectDocToCkeHtmlFragment(htmlFragment: string, doc: DocObject, text?: string): string;
|
|
4
|
+
export declare function editorToCKEHtml(editor: OnesEditor): string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { DocObject, DocComment } from '../../../../@ones-editor/editor';
|
|
2
|
+
import type { CkeHtmlConverter } from './converter';
|
|
3
|
+
export declare const CkeCommentConverter: CkeHtmlConverter;
|
|
4
|
+
export declare function processCkeCommentsLink(doc: DocObject): void;
|
|
5
|
+
export declare function convertAnnotateToComment(annotate: any): DocComment;
|
|
6
|
+
export declare function convertAnnotatesToComments(annotates: any[]): Record<string, DocComment>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface CkeHtmlConverter {
|
|
2
|
+
filter: (node: Node) => boolean;
|
|
3
|
+
replacement: (content: any, node: HTMLElement) => string;
|
|
4
|
+
}
|
|
5
|
+
export declare function registerCKEHtmlConvert(name: string, converter: CkeHtmlConverter): void;
|
|
6
|
+
export declare function getTurndownRootElement(node: Node): Node;
|
|
7
|
+
export declare function patchForEmptyBlock(key: string, node: Node, className: string): void;
|
|
File without changes
|