there should be a way to add styles to the default stylesSet
See original GitHub issuesetting stylesSet replaces all styles. it would be nice to be able to add style to default ones. (also the style option should be added to the ‘CMS’ toolbar)
docs: http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.stylesSet.html
these are my settings:
CKEDITOR_SETTINGS = {
'language': '{{ language }}',
'toolbar': 'Full',
'skin': 'moono',
'stylesSet': [
{'name': 'MY SPECIAL STYLE' , 'element': 'h3', 'styles': {'color': 'Blue'}}
],
}
Issue Analytics
- State:
- Created 11 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
there should be a way to add styles to the default stylesSet #3
setting stylesSet replaces all styles. it would be nice to be able to add style to default ones. (also the style option should...
Read more >CKEditor custom stylesSet overrides default - Stack Overflow
stylesSet option to append your styles to default ones. You can edit the styles.js file, adding and removing styles from it. It is...
Read more >Class StylesSet (CKEDITOR.stylesSet) - CKEditor 4 API docs
Note This object is an instance of CKEDITOR.resourceManager. // The set of styles for the <b>Styles</b> drop-down list. CKEDITOR.stylesSet.add( 'default' ...
Read more >Setting config.stylesSet in Custom javascript configuration has ...
To add your style to style drop down / select box please use "Predefined styles " and/or "Predefined styles path " options from...
Read more >CKEditor styles - Kentico DevNet
stylesSet.add('custom', [ /* Block Styles */ // These styles are already ... Is there a way to create/override the default styleset without ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Great, thank you! This works when I copy paste the default styles as well, so
/home/mysuser/myprojectroot/static/js/addons/ckeditor.wysiwyg.js
has to be(and
CKEDITOR_SETTINGS = { 'stylesSet': 'default:/static/js/addons/ckeditor.wysiwyg.js' }
insettings.py
)It has to be in your static directory and the path should start from the root of the project. So for this example:
https://github.com/divio/django-cms-demo/blob/7a104acaa749c52a8ed4870a74898e38daf20e46/src/settings.py#L318-L324
the file is in
/home/mysuser/myprojectroot/static/js/addons/ckeditor.wysiwyg.js