<script type="text/javascript" src="{% static "ckeditor/ckeditor/ckeditor.js" %}"></script> <textarea class="form-control" id = 'textarea' name = "action" rows="4" cols="24" style="color: #000"></textarea> <script type="text/javascript">CKEDITOR.replace('textarea');</script>
注意:1.在<textarea>定以 id 号,这里是‘textarea’,
2.在脚本里,通过语法替换 该id 'textarea'
其他指引网上可以搜寻到,不在赘述!