Answers for "ckeditor with image upload"

0

ckeditor with image upload

Inside the config.js of ckeditor add the following code 

CKEDITOR.editorConfig = function( config ) {
	..............
    ..............
    ..............
    
    config.filebrowserUploadMethod = 'form',
	config.filebrowserUploadUrl = '/api/v1/ckeditor/upload-image',
	config.image_previewText = CKEDITOR.tools.repeat(' ', 1);
    
    ..............
    ..............
    ..............
};

For more details :

https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-filebrowserUploadMethod
Posted by: Guest on November-20-2020

Browse Popular Code Answers by Language