removeBlock EDITOR
¶
removeBlock API is used to remove any content block from the INK Editor. It takes path as a parameter and remove the corresponding block from the content.
Syntax¶
removeBlock(path : Array<Number>)
Example¶
1 2 3 4 5 6 7 8 9 10 11 | import INKAPI from './inkapi.js'
INKAPI.ready(() => {
const EDITOR = INKAPI.editor;
const pathToRemove = [1];
EDITOR.removeBlock(pathToRemove);
});
|