有谁知道如何将此wordcount 插件与现有的 django-ckeditor 应用程序集成?https://github.com/dwaiter/django-ckeditor或https://github.com/shaunsephton/django-ckeditor/。_
具体来说,我被困在第 4 步
对于您的 CKEditor 实例,使用以下 HTML 标记(
content
可以是您希望的任何元素名称,只要隐藏字段的元素名称格式为elementWordCount
)
<label for="content">Content</label>
<textarea class="ckeditor" name="content"></textarea>
<input name="contentWordCount" type="hidden" value="250" />
我在哪里插入该Input
元素?
我正在使用小部件顺便说一句。
欢迎使用 wordcount 插件的替代解决方案。