locked
I enable Use image upload in CSeditor 5 RRS feed

  • Question

  • User-155883944 posted

    I enable Use image upload in CSeditor 5.Please Suggest me how to add image In CSEDITOR5

    Tuesday, July 14, 2020 6:34 AM

All replies

  • User-1330468790 posted

    Hi reetuSharma,

     

    I was wondering if you mean CKEditor 5 ? If not, could you please share the resource about CSEDITOR5?

     

    In case you misspell the name of the eidtor plugin, I will show you how to use CKEditor 5.

    Regarding the image upload, you have to configure the CKEditor with either Easy Image or CKFinder

    EasyImage is a kind of CKEditor Cloud Services that could keep the image you upload. However, CKFinder is a browser-based file uploader with its server-side connectors, which you need to code more to integrate.

     

     Below I have applied for a trial for the EasyImage account

    Html:

    <head runat="server">
        <title></title>
        <script src="https://cdn.ckeditor.com/ckeditor5/12.0.0/classic/ckeditor.js"></script>
    </head>
    <body>
        <form id="form1" runat="server">
            <div>
                <h1>Classic editor</h1>
                <asp:TextBox ID="txtarea" runat="server" TextMode="MultiLine" ClientIDMode="Static"></asp:TextBox>
                <script>
                    ClassicEditor
                        .create(document.querySelector('#txtarea'), {
                            cloudServices: {
                                tokenUrl: 'https://xxxx.xxxx.com/token/dev/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
                                uploadUrl: 'https://XXXX.XXXX.com/easyimage/upload/'
                            }})
                        .catch(error => {
                            console.error(error);
                        });
                </script>
            </div>
        </form>
    </body>

    Demo:

     

    Hope this can help you.

    Best regards,

    Sean

    Tuesday, July 14, 2020 9:04 AM
  • User-1330468790 posted

    Hi reetuSharma,

     

    Regarding your problem, is the previous reply helpful?

    If you still have any problem about adding image in CKEditor5, please feel free to let me know.

     

    Best regards,

    Sean

    Wednesday, July 29, 2020 9:51 AM