ckeditor的使用

1.第一步,下载ckeditor并引入js

官网链接:  打开下载地址 

<script src="/ckeditor/ckeditor.js" type="text/javascript"></script>   
<script src="/ckeditor/config.js" type="text/javascript"></script>

2.在html页面引入textarea标签;

<!-- 富文本编辑器 -->
<textarea name="content" id="editor"></textarea>

3.初始化富文本编辑器

//初始化编辑器
    var editor = CKEDITOR.replace('editor', { 
     //配置图片上传地址 uploaded:"/upload/img", removePlugins:'elementspath,resize', codeSnippet_theme: 'zenburn', height:'600' });
原文地址:https://www.cnblogs.com/ushowtime/p/12422031.html