mirror of
https://github.com/codex-team/editor.js
synced 2024-06-10 09:52:36 +02:00
eslint fix
This commit is contained in:
parent
70b7e46f42
commit
beebfae54f
|
@ -97,9 +97,9 @@ export default class CaretAPI extends Module {
|
|||
/**
|
||||
* Sets caret to the Block by passed index
|
||||
*
|
||||
* @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 - either BlockAPI or Block id or Block index
|
||||
* @param position - position where to set caret
|
||||
* @param offset - caret offset
|
||||
* @returns {boolean}
|
||||
*/
|
||||
private setToBlock = (
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
import type { API } from "../../../types";
|
||||
import type { BlockAPI } from "../../../types/api/block";
|
||||
import { EditorModules } from "../../types-internal/editor-modules";
|
||||
import Block from "../block";
|
||||
import type { BlockAPI } from '../../../types/api/block';
|
||||
import { EditorModules } from '../../types-internal/editor-modules';
|
||||
import Block from '../block';
|
||||
|
||||
/**
|
||||
* Returns Block instance by passed Block index or Block id
|
||||
* @param attribute
|
||||
*
|
||||
* @param attribute - either BlockAPI or Block id or Block index
|
||||
* @param editor - Editor instance
|
||||
*/
|
||||
export function resolveBlock(attribute: BlockAPI | BlockAPI['id'] | number, editor: EditorModules): Block | undefined {
|
||||
if (typeof attribute === 'number') {
|
||||
|
|
Loading…
Reference in a new issue