mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
ENHANCEMENT Added IsWYSIWYGEnabled() to check if it's enabled or not, used for templates to determine whether to return parsed content or just standard HTML
This commit is contained in:
parent
d2969a7fa4
commit
8e74406b43
@ -48,9 +48,20 @@ class BlogEntry extends Page {
|
||||
|
||||
/**
|
||||
* Is WYSIWYG editing allowed?
|
||||
* @var boolean
|
||||
*/
|
||||
static $allow_wysiwyg_editing = false;
|
||||
|
||||
/**
|
||||
* Is WYSIWYG editing enabled?
|
||||
* Used in templates.
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function IsWYSIWYGEnabled() {
|
||||
return self::$allow_wysiwyg_editing;
|
||||
}
|
||||
|
||||
/**
|
||||
* overload so that the default date is today.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user