Created
December 9, 2015 10:21
-
-
Save chluehr/d608bb00c58ebb7240f2 to your computer and use it in GitHub Desktop.
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
/* /website/static/js/editmode/wysiwyg.js */ | |
CKEDITOR.stylesSet.add( 'custom_styles', [ | |
// Paragraph Styles | |
{ name: 'Regular Text', element: 'p', attributes: { 'class': '' }}, | |
{ name: 'Large Text', element: 'p', attributes: { 'class': 'content__text-L' } } | |
]); | |
CKEDITOR.editorConfig = function( config ) { | |
// add our custom styles | |
config.stylesSet = 'custom_styles'; | |
config.toolbar = 'Basic'; | |
}; | |
/* use in Pimcore like this: | |
<?= $this->wysiwyg('custom_wysiwyg', ["customConfig" => "/website/static/js/editmode/wysiwyg.js"]); ?> | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment