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:
Sean Harvey 2008-11-27 01:43:55 +00:00
parent d2969a7fa4
commit 8e74406b43

View File

@ -48,9 +48,20 @@ class BlogEntry extends Page {
/** /**
* Is WYSIWYG editing allowed? * Is WYSIWYG editing allowed?
* @var boolean
*/ */
static $allow_wysiwyg_editing = false; 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. * overload so that the default date is today.
*/ */