MCPcopy Index your code
hub / github.com/codex-team/editor.js / move

Method move

src/components/modules/api/blocks.ts:153–155  ·  view source on GitHub ↗

* Move block from one index to another * * @param {number} toIndex - index to move to * @param {number} fromIndex - index to move from

(toIndex: number, fromIndex?: number)

Source from the content-addressed store, hash-verified

151 * @param {number} fromIndex - index to move from
152 */
153 public move(toIndex: number, fromIndex?: number): void {
154 this.Editor.BlockManager.move(toIndex, fromIndex);
155 }
156
157 /**
158 * Deletes Block

Callers 1

methodsMethod · 0.95

Calls 1

moveMethod · 0.65

Tested by

no test coverage detected