Commit eea86f0e authored by Niklas de Vries's avatar Niklas de Vries

limit initial image size to 1000px

parent 018ed506
......@@ -42,7 +42,7 @@ class SummernoteController extends CwdController
$media = $service->create($request->files->get('file'), true);
$service->flush();
$image = $service->createInstance($media);
$image = $service->createInstance($media)->cropResize(1000);
$url = sprintf(
"%s?mediaId=%d&width=%d&height=%d",
......
......@@ -39,7 +39,6 @@ var CwdMedia = function () {
processData: false,
dataType: 'json',
success: function(data) {
console.log(data.url);
$editor.summernote('insertImage', data.url);
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment