From 933d1ffa5bbd220801e218da354d02d1cda5f141 Mon Sep 17 00:00:00 2001 From: Andrew Short Date: Fri, 25 Jun 2010 16:38:17 +1000 Subject: [PATCH] Changed the inline help text to be HTML editable. --- code/InlineHelpAdmin.php | 5 +++++ code/InlineHelpTopic.php | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/code/InlineHelpAdmin.php b/code/InlineHelpAdmin.php index e48bb1c..ff713a3 100755 --- a/code/InlineHelpAdmin.php +++ b/code/InlineHelpAdmin.php @@ -14,4 +14,9 @@ class InlineHelpAdmin extends ModelAdmin { public static $model_importers = array(); + public function init() { + parent::init(); + HtmlEditorConfig::set_active('simple'); + } + } \ No newline at end of file diff --git a/code/InlineHelpTopic.php b/code/InlineHelpTopic.php index b116c68..29230a1 100755 --- a/code/InlineHelpTopic.php +++ b/code/InlineHelpTopic.php @@ -10,7 +10,7 @@ class InlineHelpTopic extends DataObject { public static $db = array( 'Title' => 'Varchar(100)', 'DisplayType' => 'Enum("Tooltip, Link", "Tooltip")', - 'Text' => 'Varchar(255)', + 'Text' => 'HTMLText', 'Link' => 'Varchar(100)', 'AttachType' => 'Enum("All, Pages, Children", "Pages")', 'DOMPattern' => 'Varchar(100)', @@ -84,7 +84,7 @@ public function getCMSFields() { 'Tooltip' => 'Display help text and/or link in tooltip', 'Link' => 'Click the icon to go to the help link' )), - new TextField('Text', 'Short help text'), + new HtmlEditorField('Text', 'Short help text', 8), new TextField('Link', 'Help link') ), new Tab('Subject',