import { ModifyContentAction, ModifyContentActionType } from './modify-content-action.abstract';
/**
 * Break the current block after press enter, this action is similar with the SplitBlockWithNodeAction,
 * The SplitBlockWithNodeAction split the current block to two same type blocks, but this action will create new paragraph or list item when break at start or end.
 * The property `newBlock` use to store the new create block if need.
 *
 * @example currentBlock.apply(new InsertNewParagraphAction(startContainerNode, startOffset))
 */
export class InsertNewParagraphAction extends ModifyContentAction {
  constructor(startContainerNode, startOffset) {
    super();
    this.type = ModifyContentActionType.INSERT_NEW_PARAGRAPH;
    this.startContainerNode = startContainerNode;
    this.startOffset = startOffset;
  }
}
