File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class TinyMCE extends Field
1818 */
1919 public $ component = 'Nova-TinyMCE ' ;
2020
21- public function __construct (string $ name , $ attribute = null , callable $ resolveCallback = null )
21+ public function __construct (string $ name , $ attribute = null , ? callable $ resolveCallback = null )
2222 {
2323 parent ::__construct ($ name , $ attribute , $ resolveCallback );
2424
@@ -80,8 +80,9 @@ protected function buildOptionsArray()
8080 $ options = array_merge ($ options , $ extra_options );
8181 }
8282
83- if (config ('nova-tinymce.formats ' ) && !empty (config ('nova-tinymce.formats ' ))) {
84- $ options ['formats ' ] = config ('nova-tinymce.formats ' );
83+ $ formats = config ('nova-tinymce.formats ' );
84+ if ($ formats && !empty ($ formats )) {
85+ $ options ['formats ' ] = $ formats ;
8586 }
8687
8788 if ($ custom_items = config ('nova-tinymce.custom_items ' )) {
You can’t perform that action at this time.
0 commit comments