import { ModifyContentAction, ModifyContentActionType } from './modify-content-action.abstract';
/**
 * Merge the two blocks node into first block if the two blocks nodes type is same(text node or image node)
 *
 * @example firstBlock.apply(new MergeTwoBlocksNodesAction(secondBlock))
 */
export class MergeTwoBlocksNodesAction extends ModifyContentAction {
  constructor(blockNeedToBeMerged) {
    super();
    this.type = ModifyContentActionType.MERGE_TWO_BLOCKS_NODES;
    this.blockNeedToBeMerged = blockNeedToBeMerged;
  }
}
