import { ModifyContentAction } from '../../dto/actions/modify-content-action.abstract';
/**
 * Action to insert a token node at a specified range in the Rich Text Editor.
 *
 * @example block.apply(new InsertTokenNodeAction(rteRange, tokenNode));
 */
export class InsertTokenNodeAction extends ModifyContentAction {
  constructor(rteRange, token) {
    super();
    this.type = 'INSERT_TOKEN_NODE';
    this.rteRange = null;
    this.actionHandleResult = false;
    this.rteRange = rteRange;
    this.token = token;
  }
}
