1.2.0 • Published 7 months ago

@ostendis/grapesjs-preset-ostendis-adv v1.2.0

Weekly downloads
-
License
BSD-3-Clause
Repository
-
Last release
7 months ago

GrapesJS Ostendis Preset

This preset configures GrapesJS to be used with some unique features and blocks for the Ostendis E-Recrui­ting sys­tem

Summary

TODO

Download

Download using one of the options:

Usage

Directly in the browser

<link href="path/to/grapes.min.css" rel="stylesheet" />
<link href="path/to/grapesjs-preset-ostendis-adv.css" rel="stylesheet" />

<script src="path/to/grapes.min.js"></script>
<script src="path/to/grapesjs-preset-ostendis-adv.min.js"></script>

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

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

Modern javascript

import grapesjs from 'grapesjs';
import plugin from 'grapesjs-preset-ostendis-adv';

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-adv.git
$ cd grapesjs-preset-ostendis

Install dependencies (use Node version 18.x)

$ npm i

Start the dev server

$ npm start

Build before the commit. This will also increase the patch level version of the package

$ npm run build

Test Version (test.html)

The file test.html was created for testing purposes. It can be used either with the Ostendis plugin or in its original version (see comments for details).

URL: http://localhost:8080/test.html

Release

To install publishing dependency

$ npm install --global np

Publish the package

$ npm run release

ONLY 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.

1.2.0

7 months ago

1.1.11

8 months ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago