Created
April 16, 2016 07:55
-
-
Save richjenks/31757a1e7928d08603b80dd98c0bb9c3 to your computer and use it in GitHub Desktop.
CKEditor for GetSimple
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php //Adds the format red to CKEditor with defined styles | |
define('GSEDITOROPTIONS', " | |
format_tags: 'p;h2;h3;h4;h5;h6;pre;small;red', | |
format_small: { | |
name: 'Small', | |
element: 'small' | |
}, | |
format_red: { | |
name: 'Red', | |
element: 'span', | |
styles: { | |
color: '#e00' | |
} | |
} | |
"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // Definition for `gsconfig.php` which enables all CKEditor toolbar buttons | |
define('GSEDITORTOOL', " | |
[ 'Source','-','Save','NewPage','DocProps','Preview','Print','-','Templates' ], | |
'/', | |
[ 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ], | |
'/', | |
[ 'Find','Replace','-','SelectAll','-','SpellChecker', 'Scayt' ], | |
'/', | |
[ 'Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', | |
'HiddenField' ], | |
'/', | |
[ 'Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat' ], | |
'/', | |
[ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','CreateDiv','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl' ], | |
'/', | |
[ 'Link','Unlink','Anchor' ], | |
'/', | |
[ 'Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak','Iframe' ], | |
'/', | |
[ 'Styles','Format','Font','FontSize' ], | |
'/', | |
[ 'TextColor','BGColor' ], | |
'/', | |
[ 'Maximize', 'ShowBlocks','-','About' ] | |
"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment