R
R
RRRRR72019-01-06 18:09:21
PHP
RRRRR7, 2019-01-06 18:09:21

ckeditor. Uploading images to the server. How?

ckeditor editor. I want to set up uploading images to the server through a dialog box. There is such an error. What can be done? Tried different methods. For example this https://php-js-css.ru/ckeditor-and-images/ Is there a working example? nothing new was found.
5c3219c2aeb6c140378723.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
RootKit1987, 2019-06-28
@RootKit1987

I don’t know if it’s outdated or not, but I’ll answer) the server needs to return json

$array = array('uploaded'=>1, 'fileName'=>$cid.'.'.$ext, 'url'=>'/mail_images/'.$cid.'.'.$ext);
return json_encode($array);

field names cannot be changed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question