import { ModifyContentAction, ModifyContentActionType } from './modify-content-action.abstract';
/**
 * Update the image node property url after the image uploaded.
 *
 * @example currentImageNode.apply(new ImageUpdateUrlAction(url))
 */
export class ImageUpdateUrlAction extends ModifyContentAction {
  constructor(newUrl) {
    super();
    this.type = ModifyContentActionType.UPDATE_IMAGE_NODE_URL;
    this.url = newUrl;
  }
}
