import { ModifyContentAction } from '../../../dto/actions/modify-content-action.abstract';
export const PASTE_PLAIN_TEXT = 'PASTE_PLAIN_TEXT';
/**
 * Action to paste plain text content into function block.
 *
 * @example functionBlock.apply(new PastePlainTextAction('content', range))
 * @example host.value.apply(new PastePlainTextAction('content', range))
 */
export class PastePlainTextAction extends ModifyContentAction {
  constructor(blocksToBeInserted, startNode, startOffset) {
    super();
    this.type = PASTE_PLAIN_TEXT;
    this.blocksToBeInserted = blocksToBeInserted;
    this.startNode = startNode;
    this.startOffset = startOffset;
  }
}
