Markdown editor image paste sets cursor correctly

Now sets cursor to alt text rather than end of placeholder image.
Fixed #751
This commit is contained in:
Dan Brown
2018-03-18 11:32:40 +00:00
parent b42b07179f
commit d2eec4fbce
2 changed files with 4 additions and 2 deletions

View File

@ -120,7 +120,7 @@ class ImageController extends Controller
{
$this->checkPermission('image-create-all');
$this->validate($request, [
'file' => 'is_image'
'file' => 'required|is_image'
]);
if (!$this->imageRepo->isValidType($type)) {