Skip to content

OrrYakobi/grapesjs-plugin-ckeditor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GrapesJS CKEditor

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

GrapesJS


Summary

  • Plugin
    • Name: gjs-plugin-ckeditor
    • Options:
      • options CKEditor's configuration object, eg. { language: 'en', toolbar: [...], ...}
      • position Position side of the toolbar, default: left, options: left|center|right

Download

Usage

<link href="path/to/grapes.min.css" rel="stylesheet"/>
<script src="path/to/grapes.min.js"></script>
<script src="path/to/grapesjs-plugin-ckeditor.min.js"></script>

<div id="gjs"></div>

<script type="text/javascript">
  var editor = grapesjs.init({
      container : '#gjs',
      plugins: ['gjs-plugin-ckeditor'],
      pluginsOpts: {
        'gjs-plugin-ckeditor': {/* ...options */}
      }
  });
</script>

Development

Clone the repository

$ git clone https://github.com/artf/grapesjs-plugin-ckeditor.git
$ cd grapesjs-plugin-ckeditor

Install dependencies

$ npm i

The plugin relies on GrapesJS and CKEditor via peerDependencies so you have to install them manually

$ npm i grapesjs ckeditor --no-save

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

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 54.2%
  • HTML 45.8%