Commit e2aef915 authored by Ludwig Ruderstaller's avatar Ludwig Ruderstaller

Merge branch 'feature/improve-media-upload' into 'master'

limit initial image size to 1000px



See merge request !2
parents 018ed506 eea86f0e
......@@ -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