@ones-editor/editor 1.1.18-beta.6 → 1.1.18-beta.7
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.
|
@@ -525,7 +525,7 @@ export interface OnesEditor extends TypedEmitter<OnesEditorEvents> {
|
|
|
525
525
|
getSelectedText: () => string;
|
|
526
526
|
clearSelectedContents: () => void;
|
|
527
527
|
insertBlock: (containerId: string, blockIndex: number, blockData: DocBlock, newRange?: OnesEditorDocRange, options?: InsertBlockOptions) => BlockElement;
|
|
528
|
-
insertEmbed: (containerId: string, blockIndex: number, embedType: string, embedData: DocEmbedData, newRange?: OnesEditorDocRange) => BlockElement;
|
|
528
|
+
insertEmbed: (containerId: string, blockIndex: number, embedType: string, embedData: DocEmbedData, newRange?: OnesEditorDocRange, attributes?: DocBlockAttributes) => BlockElement;
|
|
529
529
|
deleteBlock: (block: BlockElement, newRange?: OnesEditorDocRange) => void;
|
|
530
530
|
getTextPosition: () => BlockTextPosition;
|
|
531
531
|
getBlockString: (block: BlockElement, options?: {
|
|
@@ -545,7 +545,7 @@ export interface OnesEditor extends TypedEmitter<OnesEditorEvents> {
|
|
|
545
545
|
insertTextBlock: (text?: string | DocBlockText, containerId?: string, blockIndex?: number, options?: {
|
|
546
546
|
newRange?: OnesEditorDocRange;
|
|
547
547
|
insertBlockOptions?: InsertBlockOptions;
|
|
548
|
-
}) => BlockElement;
|
|
548
|
+
}, attributes?: DocBlockAttributes) => BlockElement;
|
|
549
549
|
insertDoc: (block: BlockElement, offset: number, doc: DocObject, cloneDocResult?: CloneBlockResultInfo) => void;
|
|
550
550
|
insertDocAt: (container: ContainerElement, blockIndex: number, doc: DocObject, cloneDocResult?: CloneBlockResultInfo) => BlockElement[];
|
|
551
551
|
pasteDoc: (doc: DocObject) => Promise<void>;
|