import { ModifyContentAction, ModifyContentActionType } from './modify-content-action.abstract';
/**
 * Split the block with a split point node.
 * The property `newBlock` use to store the new create block if need.
 *
 * @example block.apply(new SplitBlockWithNodeAction(node, offset))
 */
export class SplitBlockWithNodeAction extends ModifyContentAction {
  constructor(splitPointNode, startOffsetOfNode) {
    super();
    this.type = ModifyContentActionType.SPLIT_BLOCK_WITH_NODE;
    this.splitPointNode = splitPointNode;
    this.startOffsetOfNode = startOffsetOfNode;
  }
}
