似乎没有简单的方法来实现你所需要的。这当然很奇怪
'full'
选项不包括CMSPlugins菜单。你能做的就是更换
'toolbar': 'full'
在您的
CKEDITOR_SETTINGS
具有明确的工具栏配置。如果你
真正地
需要全套选项,
它可能看起来是这样的——不过需要注意:我没有测试这个,也不完全确定其中的一些选项,所以要根据您的需求进行调整。
# add to CKEDITOR_SETTINGS
'toolbar_CMS': [
[ 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord'],
['Undo', 'Redo'],
['cmsplugins', 'cmswidget'],
['Find', 'Replace'],
['SelectAll'],
['Scayt'],
['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'HiddenField'],
['Source', '-', 'Save', 'NewPage', 'Preview', 'Print', '-', 'Templates'],
'/',
['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript'],
['CopyFormatting', 'RemoveFormat'],
['NumberedList', 'BulletedList'],
['Outdent', 'Indent'],
['Blockquote', 'CreateDiv'],
['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'],
['BidiLtr', 'BidiRtl', 'Language'],
['Link', 'Unlink', 'Anchor'],
['CodeSnippet', 'Image2'],
['Html5audio', 'Flash', 'Table', 'HorizontalRule', 'Smiley', 'SpecialChar', 'PageBreak', 'Iframe']
'/',
['Styles', '-', 'Format', '-', 'Font', '-', 'FontSize'],
['TextColor', 'BGColor'],
['About'],
['Maximize', 'ShowBlocks']
]
还可以看看
CKEditor Toolbar Configurator
和旧的
版本
here
(我很确定Django CMS没有使用最新版本的CKEditor)。它输出JavaScript,但作为菜单图标及其名称的概述,它仍然非常有用。