A django app that eases the incorporation of the two ckeditor plugins (http://ckeditor.com/addon/glyphicons and http://ckeditor.com/addon/fontawesome) into djangocms’s ckeditor.
Installation
To get started using djangocms-glyphicon-awesome:
install it with pip:
$ pip install djangocms-glyphicon-awesome
add the app to INSTALLED_APPS and make sure it’s before djangocms_text_ckeditor:
INSTALLED_APPS = ( ... 'djangocms_glyphicon_awesome', 'djangocms_text_ckeditor', ... )
Configuration
You need a CKEDITOR_SETTINGS in settings.py that has toolbar_CMS attribute containing Glyphicons
You can copy the following configuration into your settings.py:
CKEDITOR_SETTINGS = {
'language': '{{ language }}',
'extraPlugins': 'cmsplugins,glyphicons,lineutils,widget',
'toolbar_CMS': [
[ 'Source', 'Maximize' ],
[ 'cmsplugins', '-', 'ShowBlocks' ],
[ 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo' ],
[ 'Find', 'Replace', '-', 'SelectAll', '-', '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', 'Language' ],
[ 'Link', 'Unlink', 'Anchor' ],
[ 'Image', 'Flash', 'Table', 'HorizontalRule', 'Smiley', 'SpecialChar', 'PageBreak', 'Iframe' ],
[ 'Styles', 'Format', 'Font', 'FontSize' ],
[ 'TextColor', 'BGColor'],
[ 'Glyphicons' ],
],
'contentsCss': 'http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css',
'skin': 'moono',
}
Now when you edit any text plugin with ckeditor, you will see a red cross button. Click the button and you will find all the Glyphicons.
Todo
Although the app’s name suggests that Font Awesome should be included in this app, it’s not done in the first release. Would add it in the future release.
Metadata
Release files for djangocms-glyphicon-awesome 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| djangocms-glyphicon-awesome-0.1.0.tar.gz | 143.6 kB | Without provenance | Details |
Release files / djangocms-glyphicon-awesome-0.1.0.tar.gz
| Download URL | djangocms-glyphicon-awesome-0.1.0.tar.gz |
|---|---|
| Size | 143.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
05e93f529fa08ce93f74a68a6d41d48a9337ce3fcdd22e03b27788587e14a207
|
|
BLAKE2b-256 checksum How to use checksums |
92122f64908aaa801882aac51bdc9284145a852a4fa2bc1af426455f8c72b0d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for djangocms-glyphicon-awesome 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.