import { ModifyContentAction, ModifyContentActionType } from './modify-content-action.abstract';
/**
 * Action to paste new content into current block.
 *
 * @example functionBlock.apply(new PasteContentAction(blocksToBeInserted, startNode, startOffset))
 * @example host.value.apply(new PasteContentAction(blocksToBeInserted, startNode, startOffset))
 */
export class PasteContentAction extends ModifyContentAction {
  constructor(blocksToBeInserted, startNode, startOffset, rteRange) {
    super();
    this.type = ModifyContentActionType.PASTE_CONTENT;
    this.blocksToBeInserted = blocksToBeInserted;
    this.startNode = startNode;
    this.startOffset = startOffset;
    this.rteRange = rteRange;
  }
}
