diff --git a/src/CkEditor.php b/src/CkEditor.php index f433ce7..5fd40e0 100755 --- a/src/CkEditor.php +++ b/src/CkEditor.php @@ -17,6 +17,7 @@ class CkEditor extends Field public $meta = [ 'mediaBrowser' => false, 'linkBrowser' => false, + 'shouldShow' => false, ]; /** @@ -43,6 +44,18 @@ public function linkBrowser($enabled = true): self ]); } + /** + * Always show value in detail view + * @param bool $enabled + * @return $this + */ + public function alwaysShow($enabled = true): self + { + return $this->withMeta([ + 'shouldShow' => $enabled + ]); + } + /** * Enable Snippets Browser * @param array $snippets