diff --git a/src/CKEditor.php b/src/CKEditor.php index cd0e7aa..5fb2799 100644 --- a/src/CKEditor.php +++ b/src/CKEditor.php @@ -118,12 +118,16 @@ protected function setFilesPlugins() $extraPlugins[] = 'uploadimage'; } + if (!in_array('image2', $extraPlugins)) { + $extraPlugins[] = 'image2'; + } + $this->options([ 'extraPlugins' => implode(',', $extraPlugins), ]); } else { $this->options([ - 'extraPlugins' => 'uploadimage', + 'extraPlugins' => 'image2,uploadimage', ]); } }