提问人:Fahiz 提问时间:11/12/2023 更新时间:11/12/2023 访问量:12
图标未显示在工具栏部分 TinyMCE Django 中
ICONS are not showing up In the toolbar section TinyMCE Django
问:
TinyMCE=3.6.0
settings.pyTINYMCE_JS_URL = os.path.join(STATIC_URL, "tinymce/tinymce.min.js") TINYMCE_JS_ROOT = os.path.join(STATIC_ROOT, "tinymce") TINYMCE_DEFAULT_CONFIG = { "height": "320px", "width": "800px", "selector": "textarea", "plugins": "advlist autolink lists link image charmap print preview anchor searchreplace visualblocks code " "fullscreen insertdatetime media table paste code help wordcount spellchecker", "toolbar": '''undo redo | bold italic underline strikethrough | fontselect fontsizeselect formatselect | alignleft aligncenter alignright alignjustify | outdent indent | numlist bullist checklist | forecolor backcolor casechange permanentpen formatpainter removeformat | pagebreak | charmap emoticons | fullscreen preview save print | insertfile image media pageembed template link anchor codesample | a11ycheck ltr rtl | showcomments addcomment code''', "custom_undo_redo_levels": 10, "language": "en", # To force a specific language instead of the Django current language. }
我在 Django 应用程序中使用 TinyMCE,但工具栏中的图标没有显示。我已经检查了图标是否包含在工具栏配置中,以及是否加载了必要的 CSS 和 JavaScript 文件。我还尝试清除浏览器缓存并重新加载页面,但问题仍然存在。我希望图标出现在工具栏中,就像在TinyMCE文档中一样。可能导致此问题的原因是什么?
答: 暂无答案
评论