我想通過django-ckeditor使用CKEditor。在CKEditor中加載blockquote插件
CKEditor獲取加載,但我無法加載插件。
- 我下載
blockquote.zip
,打開包裝 - 其複製到我的應用程序是這樣
myapp/static/ckeditor/ckeditor/plugins/blockquote
- 我跑
collectstatic
。如果手動插入URL,我可以通過瀏覽器訪問blockquote/plugin.js文件。 我更新的配置:
CKEDITOR_CONFIGS = { '缺省':{ 'extraPlugins': 'BLOCKQUOTE', } }
的HTML包含:
<textarea cols="40" id="id_body" name="body" rows="10" data-processed="0" data-config='... "extraPlugins": "blockquote", ...' data-external-plugin-resources='[]'
但是該插件沒有加載。我看着檢查與Firefox的網絡調試器。這些文件被加載ckeditor-init.js
,ckeditor.js
, config.js', but not a single file of
blockquote`。
相關的問題:https://github.com/django-ckeditor/django-ckeditor/issues/261
如何加載的CKEditor的塊引用插件?
更新 在另一個問題中,作者看到了對「codesnippet/plugin.js」的請求。在我的情況下,我沒有看到任何對blockquote的plugin.js文件的訪問。
的[無法得到CKEditor的插件在Django工作]可能的複製(http://stackoverflow.com/questions/26949506/cant-get-ckeditor-plugins工作在Django) –
@AnnaTomanek不,它不是重複的。另一個問題看到「codesnippet/plugin.js」的請求。在我的情況下,我沒有看到訪問plugin.js文件。 – guettli