import { ActionHandleStrategy } from '../action-handle-strategy.abstract';
/**
 * Insert image node to list item block strategy.
 */
export class ListItemInsertImageStrategy extends ActionHandleStrategy {
  /**
   * The image node can not insert into list item block, so insert image after parent list block.
   *
   * @param {InsertImageToBlockAction} action - The action instance.
   * @param {RTEListItemBlock} target - The list item block.
   */
  handleAction(action, target) {
    target.parent.apply(action);
  }
}
