Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grapesjs-page-break

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grapesjs-page-break

GrapesJS component for making page-break

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
28
increased by7.69%
Maintainers
1
Weekly downloads
 
Created
Source

GrapesJS Page-Break Block

This block is used to separate conditional pages that will be printed on separate sheets.

Summary

  • Plugin name: grapesjs-page-break
  • Blocks
    • page-break

Options

OptionDescriptionDefault
blockLabelLabel of the page-break blockPage-Break
blockPageBreakObject to extend the default page-break block{}

Download

  • NPM
    • npm i grapesjs-page-break
  • GIT
    • git clone https://github.com/levonet/grapesjs-plugin-page-break.git

Usage

Directly in the browser

<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-page-break.min.js"></script>

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

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

Modern javascript

import grapesjs from 'grapesjs';
import yourPluginName from 'grapesjs-page-break';

const editor = grapesjs.init({
  container : '#gjs',
  // ...
  plugins: ['grapesjs-page-break'],
  pluginsOpts: {
    ['grapesjs-page-break']: { /* options */ }
  }
});

Development

Clone the repository

$ git clone https://github.com/levonet/grapesjs-plugin-page-break.git.git
$ cd grapesjs-plugin-page-break

Install dependencies

$ npm i

Start the dev server

$ npm start

License

MIT

Keywords

FAQs

Package last updated on 08 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc