CKEditor是国外的一款富文本编辑器,号称来自未来的富文本编辑器!
官网
ckeditor官网:https://ckeditor.com/ckeditor-5/
使用文档:https://ckeditor.com/docs/ckeditor5/latest/builds/
演示地址
https://ckeditor.com/ckeditor-5/demo/
使用
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>CKEditor 5 – Classic editor</title> <script src="https://cdn.ckeditor.com/ckeditor5/17.0.0/classic/ckeditor.js"></script> </head> <body> <h1>Classic editor</h1> <div id="editor"> <p>This is some sample content.</p> </div> <script> ClassicEditor .create( document.querySelector( '#editor' ) ) .catch( error => { console.error( error ); } ); </script> </body> </html>
下载
- 官方下载:https://ckeditor.com/ckeditor-5/download/
- 使用npm下载:npm install –save @ckeditor/ckeditor5-build-classic
- ZIP压缩包下载:https://download.cksource.com/CKEditor/CKEditor5/17.0.0/ckeditor5-build-classic-17.0.0.zip
- 使用CDN:<script src=”https://cdn.ckeditor.com/ckeditor5/17.0.0/classic/ckeditor.js”></script>
开源地址
GitHub仓库地址:https://github.com/ckeditor/ckeditor5