3

I am trying to implement/ migrating (from ckeditor4) ckeditor v5.0 in a project.

The default classic editor is working fine. The issue is of image uploading. After selecting image from popup browser is shows "Cannot upload file:". I have already looked on this question but it didn't help much.

Below is the snippet of my code:

<script>
        var newMyEditor;
        ClassicEditor
            .create( document.querySelector( '#sendedit' ),{
             ckfinder: {
                 uploadUrl: 'upload url',
             }                    
             })
            .then( editor => {
            console.log( 'Editor was initialized');
                    newMyEditor = editor;
                } )
            .catch( error => {
                console.error( error );
            } );
</script>

Bakend - PHP v5.2 Server - Windows

Bhaskar Jain
  • 1,651
  • 1
  • 12
  • 20
  • Please paste your error code here – Suman Apr 28 '18 at 12:50
  • 1
    I am getting `Cannot upload file:filename.png` in alert box. no error in console – Bhaskar Jain Apr 28 '18 at 12:51
  • could you find solution? – JanuszO Jan 25 '20 at 17:22
  • Bear in mind that the ckfinder has also to be declared in the toolbar options of the ckeditor and make sure that the ckfinder.js script is loaded into your page. For more info check here > https://ckeditor.com/docs/ckeditor5/latest/features/image-upload/ckfinder.html#demo – Menios Feb 08 '20 at 15:14

0 Answers0