Skip to content

Commit

Permalink
Changed the inline help text to be HTML editable.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajshort committed Jun 25, 2010
1 parent 0e4904d commit 933d1ff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions code/InlineHelpAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,9 @@ class InlineHelpAdmin extends ModelAdmin {

public static $model_importers = array();

public function init() {
parent::init();
HtmlEditorConfig::set_active('simple');
}

}
4 changes: 2 additions & 2 deletions code/InlineHelpTopic.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)',
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 933d1ff

Please sign in to comment.