UNPKG

substance

Version:

Substance is a JavaScript library for web-based content editing. It provides building blocks for realizing custom text editors and web-based publishing system. It is developed to power our online editing platform [Substance](http://substance.io).

10 lines (8 loc) 263 B
import ItemCommand from './ItemCommand' export default class RemoveItemCommand extends ItemCommand { execute (params, context) { const commandState = params.commandState const node = commandState.node context.api.removeAndDeleteNode(node.id) } }