1.2.0 • Published 7 months ago
@ostendis/grapesjs-preset-ostendis-simple v1.2.0
GrapesJS Ostendis Preset
This preset configures GrapesJS to be used with some unique features and blocks for the Ostendis E-Recruiting system
Summary
TODO
Download
Download using one of the options:
npm i grapesjs-preset-ostendis-simple- Latest release link https://github.com/ostendisorg/grapesjs-preset-ostendis-simple/releases
Usage
Directly in the browser
<link href="path/to/grapes.min.css" rel="stylesheet" />
<link href="path/to/grapesjs-preset-ostendis-simple.css" rel="stylesheet" />
<script src="path/to/grapes.min.js"></script>
<script src="path/to/grapesjs-preset-ostendis-simple.min.js"></script>
<div id="gjs"></div>
<script type="text/javascript">
var editor = grapesjs.init({
container: "#gjs",
plugins: ["grapesjs-preset-ostendis-simple"],
pluginsOpts: {
"grapesjs-preset-ostendis-simple": {
// options
},
},
});
</script>Modern javascript
import grapesjs from 'grapesjs';
import plugin from 'grapesjs-preset-ostendis-simple';
const editor = grapesjs.init({
container : '#gjs',
// ...
plugins: [plugin],
pluginsOpts: {
[plugin]: { /* options */ }
}
// or
plugins: [
editor => plugin(editor, { /* options */ }),
],
});Development
Clone the repository
$ git clone https://github.com/ostendisorg/grapesjs-preset-ostendis-simple.git
$ cd grapesjs-preset-ostendisInstall dependencies
$ npm iStart the dev server
$ npm startBuild before the commit. This will also increase the patch level version of the package
$ npm run buildRelease
To install publishing dependency
$ npm install --global npPublish the package
$ npm run releaseONLY workes with package: https://www.npmjs.com/package/np
License
BSD 3-Clause
Based on: GrapesJS Newsletter Preset Copyright (c) 2016, Artur Arseniev All rights reserved.