Skip to content
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.

Commit

Permalink
Enable alwaysShow() support
Browse files Browse the repository at this point in the history
  • Loading branch information
pindab0ter committed Jun 29, 2021
1 parent 6028ee7 commit 0ecc6ed
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/CkEditor.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class CkEditor extends Field
public $meta = [
'mediaBrowser' => false,
'linkBrowser' => false,
'shouldShow' => false,
];

/**
Expand All @@ -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
Expand Down

0 comments on commit 0ecc6ed

Please sign in to comment.