All Projects → Ju99ernaut → grapesjs-plugin-toolbox

Ju99ernaut / grapesjs-plugin-toolbox

Licence: MIT License
Tools for grapesjs

Programming Languages

javascript
184084 projects - #8 most used programming language
SCSS
7915 projects
HTML
75241 projects

Projects that are alternatives of or similar to grapesjs-plugin-toolbox

AppWorks
🐻 基于 VS Code 插件的前端研发工具集,站点国内镜像:https://apptools.gitee.io
Stars: ✭ 788 (+4535.29%)
Mutual labels:  tools
FisherMan
CLI program that collects information from facebook user profiles via Selenium.
Stars: ✭ 117 (+588.24%)
Mutual labels:  tools
Photoshop-Javascript-Tools
Utility scripts to speed up daily photoshopping and automate annoying tasks
Stars: ✭ 35 (+105.88%)
Mutual labels:  tools
reactools
Create React interfaces is easy.
Stars: ✭ 14 (-17.65%)
Mutual labels:  tools
kmm-awesome
An awesome list that curates the best KMM libraries, tools and more.
Stars: ✭ 598 (+3417.65%)
Mutual labels:  tools
import-graph
🕵🏻‍♂️ Collect data about your dependencies
Stars: ✭ 35 (+105.88%)
Mutual labels:  tools
EmbeddedTools
Additions to the model-based DSL for deploying Java and Native projects to remote targets
Stars: ✭ 14 (-17.65%)
Mutual labels:  tools
ai-brain-extensions-for-topdown-engine
This project is a set of extensions for the Unity3D TopDown Engine by MoreMountains.
Stars: ✭ 23 (+35.29%)
Mutual labels:  tools
LSAdditions
The Category of Commonly used controls and you can create a control quickly(Object, Control ...)
Stars: ✭ 15 (-11.76%)
Mutual labels:  tools
forza-painter
Import images into Forza
Stars: ✭ 228 (+1241.18%)
Mutual labels:  tools
hack-tools
"Кали-заменитель". Располагает в себе большое количество утилит для взлома.
Stars: ✭ 39 (+129.41%)
Mutual labels:  tools
HITMers
Management system for Harbin Institute of Technology Museum
Stars: ✭ 70 (+311.76%)
Mutual labels:  tools
lapa
Universal AWS Lambda packager
Stars: ✭ 20 (+17.65%)
Mutual labels:  tools
mozitools
Mozi Botnet related tools helping to unpack a sample, decode a configuration and track active Mozi nodes using DHT.
Stars: ✭ 23 (+35.29%)
Mutual labels:  tools
bundle-inspector-webpack-plugin
Bundle Inspector | Analysis Tool for Webpack
Stars: ✭ 19 (+11.76%)
Mutual labels:  tools
deusexmachina
Game engine evolved from The Nebula Device 2 and 3
Stars: ✭ 15 (-11.76%)
Mutual labels:  tools
prjxray-db
Project X-Ray Database: XC7 Series
Stars: ✭ 52 (+205.88%)
Mutual labels:  tools
vscode-odoo-snippets
Develop Odoo modules faster and with no Typing Errors.
Stars: ✭ 20 (+17.65%)
Mutual labels:  tools
awesome-bookmarks
书签「利器」收集 🍪🍿 Wiki 在线阅读👉
Stars: ✭ 45 (+164.71%)
Mutual labels:  tools
dftools
Tools for Star Wars: Dark Forces assets.
Stars: ✭ 18 (+5.88%)
Mutual labels:  tools

Grapesjs Plugin Toolbox

Tools for grapesjs

DEMO

HTML

<link href="https://unpkg.com/grapesjs/dist/css/grapes.min.css" rel="stylesheet">
<link href="https://unpkg.com/grapesjs-plugin-toolbox/dist/grapesjs-plugin-toolbox.min.css" rel="stylesheet">
<script src="https://unpkg.com/grapesjs"></script>
<script src="https://unpkg.com/grapesjs-plugin-toolbox"></script>

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

JS

const editor = grapesjs.init({
	container: '#gjs',
  height: '100%',
  fromElement: true,
  storageManager: false,
  plugins: ['grapesjs-plugin-toolbox'],
});

CSS

body, html {
  margin: 0;
  height: 100%;
}

Summary

Grid Component

Here template guides referes to the dotted lines and colored template areas whereas grid cells referes to the actual divs generated from the template guide.

If the grid component is not empty the update button will only update the css to avoid overwriting any content. Check here to see usage example.

  • Traits
    • auto-fill - generate grid automatically(disables guides)
    • min - min cell width in px if auto-fill is used
    • columns
    • rows
    • columngap
    • rowgap
    • toggle - show/hide template guides if not auto-fill(same function as toolbar icon)
    • reset - reset colored template areas used to generate grid
    • clear - remove grid cells
    • update - generates grid cells or updates css if grid component isn't empty

Options

Option Description Default
panels use plugin panels false
traitsInSm move traits/settings to styles panel true
resizer include canvas resizer true
hideOnZoom hide resizer if zoom is not 100 true
breadcrumbs include breadcrumbs true
labelGrid label for grid block Grid
categoryGrid category for grid block Basic
gridBlock options to extend grid block {}
gridComponent options to extend grid component model {}
gridClass class for grid block grid
gridCellClass class for grid cell block grid-cell
cellItemClass class for cell item block cell-item
labelColors label for color palette modal Image palette
labelApply label for apply button Add
palleteIcon toolbar icon to open palette modal <i class="fa fa-paint-brush"></i>
onAdd custom logic when palette is added 0
refreshPalette color pickers to refresh color palettes [{sector: 'typography',name: 'Color',property: 'color',type: 'color',defaults: 'black'},...]
minScreenSize minimum value the screen can be resized 250
icons icons to map to components [{type: 'default', icon:'<i class="fa fa-cube"></i>'},...]

Download

  • CDN
    • https://unpkg.com/grapesjs-plugin-toolbox
  • NPM
    • npm i grapesjs-plugin-toolbox
  • GIT
    • git clone https://github.com/Ju99ernaut/grapesjs-plugin-toolbox.git

Usage

Directly in the browser

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

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

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

Modern javascript

import grapesjs from 'grapesjs';
import plugin from 'grapesjs-plugin-toolbox';
import 'grapesjs/dist/css/grapes.min.css';
import 'grapesjs-plugin-toolbox/dist/grapesjs-plugin-toolbox.min.css';

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/Ju99ernaut/grapesjs-plugin-toolbox.git
$ cd grapesjs-plugin-toolbox

Install dependencies

$ npm i

Build css

$ npm run build:css

Start the dev server

$ npm start

Build the source

$ npm run build

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].