Code editor plugin for GrapesJS


stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
181May 10, 2019Apr 19, 2018Minified + gzip package size for @truenorthtechnology/grapesjs-code-editor in KB


GrapesJS Code Editor

A plugin to allow users to edit html and css code on GrapesJS.


  • CDN
    • https://unpkg.com/@truenorthtechnology/grapesjs-code-editor
  • NPM
    • npm i @truenorthtechnology/grapesjs-code-editor
  • GIT
    • git clone https://github.com/portablemind/grapesjs-code-editor.git


<link href="https://unpkg.com/grapesjs/dist/css/grapes.min.css" rel="stylesheet"/>
<script src="https://unpkg.com/grapesjs"></script>
<script src="path/to/grapesjs-code-editor.min.js"></script>

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

<script type="text/javascript">
  var editor = grapesjs.init({
      container: '#gjs',
      commands: {
        defaults: [
      panels: { /* ... add the open-code button to the views panel */ },


Clone the repository

$ git clone https://github.com/portablemind/grapesjs-code-editor.git
$ cd grapesjs-code-editor

Install dependencies

$ npm i

The plugin relies on GrapesJS via peerDependencies so you have to install it manually (without adding it to package.json)

$ npm i grapesjs --no-save

Start the dev server

$ npm start


BSD 3-Clause

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.