File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -189,10 +189,12 @@ public function boot()
189189 // $editor_options = $user_editor != "0" ? $user_editor : file_get_contents(base_path(Setting::grab('summernote_options_json_file')));
190190 if ($ user_editor != '0 ' ) {
191191 $ editor_options = $ user_editor ;
192- } elseif (Setting::grab ('summernote_options_json_file ' ) == 'default ' ) {
193- $ editor_options = file_get_contents (realpath (__DIR__ ).'/JSON/summernote_init.json ' );
194- } else {
192+
193+ }elseif (Setting::grab ('summernote_options_json_file ' ) != 'default ' and file_exists (base_path (Setting::grab ('summernote_options_json_file ' )))) {
195194 $ editor_options = file_get_contents (base_path (Setting::grab ('summernote_options_json_file ' )));
195+
196+ } else {
197+ $ editor_options = file_get_contents (realpath (__DIR__ ).'/JSON/summernote_init.json ' );
196198 }
197199
198200 $ view ->with (compact ('editor_locale ' , 'editor_options ' ));
You can’t perform that action at this time.
0 commit comments