diff --git a/src/NovaEditorJsField.php b/src/NovaEditorJsField.php index be6703f..1256f67 100644 --- a/src/NovaEditorJsField.php +++ b/src/NovaEditorJsField.php @@ -72,4 +72,15 @@ public function resolveForDisplay($resource, $attribute = null) $this->value = call_user_func($this->displayCallback, $value); } + + /** + * + * @param array $tools + * + */ + + public function tools(array $tools) + { + return $this->withMeta(["toolSettings" => $tools]); + } }