Skip to content

Repository files navigation

GrapesJS CKEditor

This plugin replaces the default Rich Text Editor with the CKEditor

Demo

GrapesJS


Summary

  • Plugin name: grapesjs-plugin-ckeditor

Options

OptionDescriptionDefault
optionsCKEditor's configuration object, eg. { language: 'en', toolbar: [...], ...}{}
positionPosition side of the toolbar, options: left, center, rightleft
ckeditorPass CKEDITOR constructor or the CDN string from which the CKEDITOR will be loaded.https://cdn.ckeditor.com/4.21.0/standard-all/ckeditor.js
customRteExtend the default customRTE interface.{}
onToolbarCustomize CKEditor toolbar element once created, eg. onToolbar: (el) => { el.style.minWidth = '350px' }``

Download

  • CDN
    • https://unpkg.com/grapesjs-plugin-ckeditor
  • NPM
    • npm i grapesjs-plugin-ckeditor
  • GIT
    • git clone https://github.com/GrapesJS/ckeditor.git

Usage

<linkhref="path/to/grapes.min.css" rel="stylesheet"/><scriptsrc="path/to/grapes.min.js"></script><scriptsrc="path/to/grapesjs-plugin-ckeditor.min.js"></script><divid="gjs"></div><scripttype="text/javascript">vareditor=grapesjs.init({container : '#gjs',plugins: ['grapesjs-plugin-ckeditor'],pluginsOpts: {'grapesjs-plugin-ckeditor': {/* ...options */}}});</script>

Development

Clone the repository

$ git clone https://github.com/GrapesJS/ckeditor.git
$ cd ckeditor

Install dependencies

$ npm i

Start the dev server

$ npm start

License

BSD 3-Clause

About

This plugin replaces the default Rich Text Editor with the one from CKEditor

Resources

Stars

110 stars

Watchers

8 watching

Forks

Releases

Packages

Used by

Contributors

Languages