import { ModifyContentAction, ModifyContentActionType } from './modify-content-action.abstract';
/**
 * Clear the current block nodes and append new nodes
 *
 * @example block.apply(new ReplaceChildNodesAction(newNodes))
 */
export class ReplaceChildNodesAction extends ModifyContentAction {
  constructor(newChildNodes) {
    super();
    this.type = ModifyContentActionType.REPLACE_CHILD_NODES;
    this.newChildNodes = newChildNodes;
  }
}
