Another challenge on using CKEditor

Hi,

I facing challenge using sangroya\ckeditor5\CKEditor

Here is my code:-

Here is what it return:-

And in the console it return:-

I is uploading the image successfull but at the end it return error on browser and fail to insert image.

Kindly assist me

Add ckeditor-upload action code and any JS is used in form

I tried, however it seems sangroya\ckeditor5\CKEditor package is not working on uploading image

_form.php

use yii\web\UploadedFile;

<?php $form = ActiveForm::begin( ['enableAjaxValidation' => true],['enctype'=>'multipart/form-data'] ); ?>
          <div class="widget-user-image">
  <?= $form->field($model, 'image')->widget(FileInput::classname(), [
          'options' => ['accept' => 'image/*'],
           'pluginOptions'=>['allowedFileExtensions'=>['jpeg','jpg','gif','png'],'showUpload' => false,],
      ])->label(false);   ?>
          </div>

----------controller------------
use yii\web\UploadedFile;

//****************** rutina de almacenar la imagen********************************
$image = UploadedFile::getInstance($model, ‘image’);
// generate a unique file name to prevent
if (!is_null($image)) {
$model->agenciafotosrcfilename = $image->name;
$image->name = strtr($image->name, " “, “-”);
// busca la extencion del archivo
$ext = explode(”.“, $image->name);
$ext = end($ext);
// generate a unique file name to prevent duplicate filenames
$model->agenciafotowebfilename = Yii::$app->security->generateRandomString().”.{$ext}";
// the path to save file, you can set an uploadPath
// in Yii::$app->params (as used in example below)
Yii::$app->params[‘uploadPath’] = Yii::$app->basePath . ‘/web/images/agencias/’;
$path = Yii::$app->params[‘uploadPath’] . $model->agenciafotowebfilename;
$image->saveAs($path);
}
//*************************************************************************************

index.php

[‘class’ => ‘yii\grid\ActionColumn’,‘template’=>‘{update}’],
[‘attribute’ => ‘Imagen’,
‘format’ => ‘raw’,
‘value’ => function ($model) {
if ($model->agenciafotowebfilename!=‘’)

                    return '<img src="../web/images/agencias/'.$model->agenciafotowebfilename.'"width="50px" height="auto">'; else return 'no image';
                 },
               ],