@editorjs/editorjs
Advanced tools
Comparing version 2.30.0-rc.7 to 2.30.0-rc.8
{ | ||
"name": "@editorjs/editorjs", | ||
"version": "2.30.0-rc.7", | ||
"version": "2.30.0-rc.8", | ||
"description": "Editor.js — Native JS, based on API and Open Source", | ||
@@ -5,0 +5,0 @@ "main": "dist/editorjs.umd.js", |
@@ -150,3 +150,3 @@ import {OutputBlockData, OutputData} from '../data-formats/output-data'; | ||
*/ | ||
convert(id: string, newType: string, dataOverrides?: BlockToolData): void; | ||
convert(id: string, newType: string, dataOverrides?: BlockToolData): Promise<BlockAPI>; | ||
} |
@@ -0,1 +1,3 @@ | ||
import { BlockAPI } from "./block"; | ||
/** | ||
@@ -49,9 +51,9 @@ * Describes Editor`s caret API | ||
* | ||
* @param {number} index - index of Block where to set caret | ||
* @param {string} position - position where to set caret | ||
* @param {number} offset - caret offset | ||
* @param blockOrIdOrIndex - BlockAPI or Block id or Block index | ||
* @param position - position where to set caret | ||
* @param offset - caret offset | ||
* | ||
* @return {boolean} | ||
*/ | ||
setToBlock(index: number, position?: 'end'|'start'|'default', offset?: number): boolean; | ||
setToBlock(blockOrIdOrIndex: BlockAPI | BlockAPI['id'] | number, position?: 'end'|'start'|'default', offset?: number): boolean; | ||
@@ -58,0 +60,0 @@ /** |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
662245
12662