Skip to content

Commit

Permalink
Added a simplified HTML editor field config.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajshort committed Jun 25, 2010
1 parent c18e111 commit d5b2d37
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion _config.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,22 @@
* @package silverstripe-inlinehelp
*/

Object::add_extension('SiteTree', 'InlineHelpExtension');
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);

0 comments on commit d5b2d37

Please sign in to comment.