使用CKEditor编辑器进行文本编辑

it2025-05-28  11

首先下载CKEditor。

下载地址:点击打开链接

将下载完的CKEditor解压而且导入到项目中。

然后在页面引入CKEditor

<script type="text/javascript" src="ckeditor/ckeditor.js"></script>在要编辑的textarea标签中增加class=“ckeditor” 并增加对应的id和name属性

<textarea rows="10" cols="20" id="editor1" name="editor1" class="ckeditor"></textarea>然后在server执行就可以使用CKEditor

效果如图:

转载于:https://www.cnblogs.com/bhlsheji/p/5366663.html

相关资源:django轻松使用富文本编辑器CKEditor的方法
最新回复(0)