diff --git a/_config.php b/_config.php index 4cc1260..08c485d 100755 --- a/_config.php +++ b/_config.php @@ -3,4 +3,22 @@ * @package silverstripe-inlinehelp */ -Object::add_extension('SiteTree', 'InlineHelpExtension'); \ No newline at end of file +Object::add_extension('SiteTree', 'InlineHelpExtension'); + +/** + * Set up a simplified HTML editor config for use in help text. + */ +HtmlEditorConfig::get('simple')->setOptions(array( + 'friendly_name' => 'Simple', + 'language' => i18n::get_tinymce_lang(), + 'document_base_url' => Director::absoluteBaseURL(), + 'mode' => 'specific_textareas', + 'valid_elements' => '*[*]' +)); +HtmlEditorConfig::get('simple')->setButtonsForLine(1, array( + 'bold', 'italic', 'underline', 'strikethrough', 'separator', 'undo', + 'redo', 'separator', 'formatselect', 'cleanup', 'separator', + 'bullist', 'numlist' +)); +HtmlEditorConfig::get('simple')->setButtonsForLine(2); +HtmlEditorConfig::get('simple')->setButtonsForLine(3); \ No newline at end of file