[otrs-cvs] otrs/Kernel/Output/HTML/Standard RichTextEditor.dtl, 1.47, 1.48
"CVS commits notifications of OTRS.org" <[email protected]>
| Newsgroups | gmane.comp.otrs.cvs |
|---|---|
| Message-ID | <[email protected]> |
Comments:
Update of /home/cvs/otrs/Kernel/Output/HTML/Standard
In directory lancelot:/tmp/cvs-serv25100/Kernel/Output/HTML/Standard
Modified Files:
RichTextEditor.dtl
Log Message:
Fixed bug#8975 - There should be a possibility to enable advanced richtext editor features via sysconfig.
Author: mab
Index: RichTextEditor.dtl
===================================================================
RCS file: /home/cvs/otrs/Kernel/Output/HTML/Standard/RichTextEditor.dtl,v
retrieving revision 1.47
retrieving revision 1.48
diff -2 -u -d -r1.47 -r1.48
--- RichTextEditor.dtl 10 Dec 2012 09:53:24 -0000 1.47
+++ RichTextEditor.dtl 10 Dec 2012 13:24:15 -0000 1.48
@@ -31,9 +31,21 @@
Core.Config.Set('RichText.SpellChecker', '$Env{"BrowserSpellCheckerInline"}');
Core.Config.Set('RichText.EditingAreaCSS', 'body { $Config{"Frontend::RichText::DefaultCSS"} }');
- Core.Config.Set('RichText.Toolbar', [
- ['Bold', 'Italic', 'Underline', 'Strike', '-', 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'Link', 'Unlink', '-', 'Image', 'HorizontalRule', '-', 'Undo', 'Redo', '-', 'Find', 'SpellCheck'],
- '/',
- ['Format', 'Font', 'FontSize', '-', 'TextColor', 'BGColor', 'RemoveFormat', '-', 'Source']
- ]);
+
+ // decide if we need to use the enhanced mode (with tables)
+ if ( '$Config{"Frontend::RichText::EnhancedMode"}' === '1' ) {
+ Core.Config.Set('RichText.Toolbar', [
+ ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'NumberedList', 'BulletedList', 'Table', '-', 'Outdent', 'Indent', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'Link', 'Unlink', 'Undo', 'Redo', 'SelectAll' ],
+ '/',
+ ['Image', 'HorizontalRule', 'PasteText', 'PasteFromWord', '-', '-', 'Find', 'Replace', 'SpellCheck', 'TextColor', 'BGColor', 'RemoveFormat', '-', 'ShowBlocks', 'Source'],
+ ['Format', 'Font', 'FontSize' ]
+ ]);
+ }
+ else {
+ Core.Config.Set('RichText.Toolbar', [
+ ['Bold', 'Italic', 'Underline', 'Strike', '-', 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'Link', 'Unlink', '-', 'Image', 'HorizontalRule', '-', 'Undo', 'Redo', '-', 'Find', 'SpellCheck'],
+ '/',
+ ['Format', 'Font', 'FontSize', '-', 'TextColor', 'BGColor', 'RemoveFormat', '-', 'Source']
+ ]);
+ }
Core.Config.Set('RichText.ToolbarWithoutImage', [
['Bold', 'Italic', 'Underline', 'Strike', '-', 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'Link', 'Unlink', '-', 'HorizontalRule', '-', 'Undo', 'Redo', '-', 'Find', 'SpellCheck'],
---------------------------------------------------------------------
OTRS mailing list: cvs-log - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/cvs-log
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log