goser

在发帖的页面经常会编辑一些图片、字体、多媒体等,手动编辑这么内容比较麻烦,这样就会用到html在线编辑器

这里介绍下CKEditor和UEditor

CKEditor

首先下载CKEditor的full版本

通过CKEditor的在线帮助文档来使用CKEditor

  http://docs.ckeditor.com/#!/guide/dev_installation

将ckeditor_4.7.1_full.zip解压缩好后放到django中的静态目录中,然后在发帖的页面中导入上图中的js和添加<textarea name=\'editor1\' id=\'editor1\' rows= \'10\' cols=\'80\'></textarea>

这样在发帖的页面显示如下:

 

分类:

技术点:

相关文章:

  • 2021-09-30
  • 2022-12-23
  • 2022-12-23
  • 2021-10-31
  • 2021-04-22
  • 2021-04-25
  • 2021-12-12
猜你喜欢
  • 2021-06-03
  • 2021-07-19
  • 2021-12-01
  • 2022-12-23
  • 2022-12-23
  • 2021-08-30
  • 2021-10-09
相关资源
相似解决方案