1.0.52 • Published 6 months ago

grapesjs-paneless v1.0.52

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Mujo Editor

Website builder preset used in blocomposer.app

HTML

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

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

JS

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

CSS

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

Summary

  • Plugin name: grapesjs-paneless
  • Components
    • icon
    • shape-divider
    • header
    • animate
    • block-builder
    • button-basic
  • Blocks
    • link-block
    • quote
    • text-basic
    • section-block
    • span-block
    • button-basic
    • block-builder
    • line-divider
    • hero-block
    • team
    • team-card
    • footer
    • shape-divider
    • header
    • icon
    • animate
  • Commands
    • left-assets
    • left-settings
    • page-seo
    • adder
    • gjs-open-import-webpage
    • settings-customHead
    • settings-globalCss
    • get-current-name
    • open-fonts
    • clone-page
    • add-block
    • help
    • publish
    • set-device-desktop
    • set-device-tablet
    • set-device-mobile
    • canvas-clear

Options

OptionDescriptionDefault
useCloudinaryUse cloudinary file pickertrue
showPanelsUse editor with fixed panelsfalse
staticSettingsReposition settings popup when a component is selectedfalse
settingsAnimationAnimate settings popup whentrue
hideSettingsHide settings by defaulttrue
linkBlockExtend link block{}
quoteBlockExtend quote block{}
textBlockExtend text block{}
btnBlockExtend button block{}
bldBlockExtend block builder block{}
hrBlockExtend line divider block{}
heroBlockExtend hero block{}
teamBlockExtend team block{}
shapedividerBlockExtend shape divider block{}
sectionBlockExtend section block{}
spanBlockExtend span block{}
footerBlockExtend footer block{}
headerBlockExtend header block{}
animateBlockExtend animate block{}
iconBlockExtend icon block{}
modalHelpLabelModal help titleHelp
modalImportTitleModal import titleImport
modalImportButtonModal import button textImport
modalImportLabelImport description inside import modalHTML
modalImportContentDefault content to setup on import model openCheck Source
importViewerOptionsCode viewer (eg. CodeMirror) options{}
textCleanCanvasConfirm text before cleaning the canvasAre you sure to clean the canvas?
onSaveCallback when save button is clickedCheck Source
hoverDelayHover delay for block adding widgets, lower value makes hover update faster250
optsWidgetAdd widget default opts overridesCheck Source
toHoverDetermine hoverable componentsCheck Source
positionRTE positioncenter
optionsCKE4 optionCheck Source
versionApp versionv1.0.44b

Download

  • CDN
    • https://unpkg.com/grapesjs-paneless
  • NPM
    • npm i grapesjs-paneless
  • GIT
    • git clone https://github.com/Ju99ernaut/grapesjs-paneless.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-paneless.min.js"></script>

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

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

Modern javascript

import grapesjs from 'grapesjs';
import plugin from 'grapesjs-paneless';
import 'grapesjs/dist/css/grapes.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-paneless.git
$ cd grapesjs-paneless

Install dependencies

$ npm i

Watch sass

$ npm run watch:sass

Start the dev server

$ npm start

Build the source

$ npm run build

Build the css

$ npm run build:css

License

MIT

1.0.52

6 months ago

1.0.51

6 months ago

1.0.50

6 months ago