diff --git a/code/BlogEntry.php b/code/BlogEntry.php index 14becec..6d1c2a3 100644 --- a/code/BlogEntry.php +++ b/code/BlogEntry.php @@ -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. */