import { ModifyContentAction, ModifyContentActionType } from './modify-content-action.abstract';
/**
 * Insert a new children to the nearest position of the parent container
 *
 * @example parent.apply(new InsertNodeToNearestRoot(rteRange, nodeToBeInserted))
 */
export class InsertNodeToNearestRootAction extends ModifyContentAction {
  constructor(rteRange, nodeToBeInserted) {
    super();
    this.type = ModifyContentActionType.INSERT_NODE_TO_NEAREST_ROOT;
    this.rteRange = rteRange;
    this.nodeToBeInserted = nodeToBeInserted;
  }
}
