Z
Z
zwer2s2014-09-07 16:34:04
Django
zwer2s, 2014-09-07 16:34:04

How to make full toolbar in CKEditor in Django?

I'm suffering for a long time, I can't do anything, I have such a toolbar now. I
AWvVOYx2zDGMZEpASKIaUC5zSiFON9eIiXrW9etW
really don't have a button to add a link.
The site itself is hosted by locum, ckeditor added to the site via ftp, downloaded the version for django from github , took all the settings from the same page. In settings.py I have this:
CKEDITOR_CONFIGS = {
'awesome_ckeditor': {
'toolbar': 'Full',
'width': 900,
}
}
Theoretically, there should be a full toolbar, but no =(
Tried in config.js in the directory with the editor, add the toolbar settings from here , but nothing has changed.I
would be very happy to help!

Answer the question

In order to leave comments, you need to log in

4 answer(s)
M
mr_drinkens89, 2014-10-02
@zwer2s

It is necessary to register in the configs those elements that are needed for display.
For example, like this:

CKEDITOR_UPLOAD_PATH = "filer_public/"
CKEDITOR_CONFIGS = {
    "default": {
        "removePlugins": "stylesheetparser",
        'allowedContent': True,
        'toolbar_Full': [
        ['Styles', 'Format', 'Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat' ],
        ['Image', 'Flash', 'Table', 'HorizontalRule'],
        ['TextColor', 'BGColor'],
        ['Smiley','sourcearea', 'SpecialChar'],
        [ 'Link', 'Unlink', 'Anchor' ],
        [ 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'CreateDiv', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'BidiLtr', 'BidiRtl', 'Language' ],
        [ 'Source', '-', 'Save', 'NewPage', 'Preview', 'Print', '-', 'Templates' ],
        [ 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo' ],
        [ 'Find', 'Replace', '-', 'SelectAll', '-', 'Scayt' ],
        [ 'Maximize', 'ShowBlocks' ]
    ],
    }
}

And there will be a full toolbar.

A
Alexey, 2014-09-08
@MAKAPOH

Once I asked myself a similar question, the solution was found. Link to the question with the answer, maybe it will help. Everything I did, I remember very vaguely :)

H
Hazrat Hajikerimov, 2014-09-11
@hazratgs

On the official website , it seems you can choose a complete set, no?

V
vvlch, 2015-10-26
@vvlch

Purely for history: it is enough to write in CKEDITOR_CONFIGS 'toolbar': None
(at least for the django-ckeditor-updated package)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question