import { ModifyContentAction, ModifyContentActionType } from './modify-content-action.abstract';
/**
 * Update the text node property text action
 *
 * @example textNode.apply(new UpdateTextAction(newText))
 */
export class UpdateTextAction extends ModifyContentAction {
  constructor(text) {
    super();
    this.type = ModifyContentActionType.UPDATE_TEXT;
    this.newTextContent = '';
    this.newTextContent = text;
  }
}
