
Security News
libxml2 Maintainer Ends Embargoed Vulnerability Reports, Citing Unsustainable Burden
Libxml2’s solo maintainer drops embargoed security fixes, highlighting the burden on unpaid volunteers who keep critical open source software secure.
grapesjs-advance-components
Advanced tools
<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-advance-components"></script>
<div id="gjs"></div>
const editor = grapesjs.init({
container: '#gjs',
height: '100%',
fromElement: true,
storageManager: false,
plugins: ['grapesjs-advance-components'],
});
body, html {
margin: 0;
height: 100%;
}
grapesjs-advance-components
More components and blocks will be added soon with more advance features.No. | Component | Block |
---|---|---|
1. | Faq | faq-block |
2. | Heading (h1, h2, h3, h4, h5, h6) | heading-block |
3. | Paragraph | paragraph-block |
4. | List | list-block |
5. | Link | link-block |
6. | Image | image-block |
7. | Video | video-block |
8. | Progress Bar | progress-bar-block |
9. | Input (color, date, datetime-local, email, file, hidden, image, month, number, password, radio, range, reset, search, submit, tel, text, time, url, week, checkbox) | input-block |
10. | Dropdown | dropdown-block |
11. | Textarea | textarea-block |
12. | Map | map-block |
13. | Divider | divider-block |
14. | Button | button-block |
15. | Slider | slider-block |
https://unpkg.com/grapesjs-advance-components
npm i grapesjs-advance-components
git clone https://github.com/VaibhavBansal26/grapesjs-advance-components.git
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-advance-components.min.js"></script>
<div id="gjs"></div>
<script type="text/javascript">
var editor = grapesjs.init({
container: '#gjs',
// ...
plugins: ['grapesjs-advance-components'],
pluginsOpts: {
'grapesjs-advance-components': { /* options */ }
}
});
</script>
Modern javascript
import grapesjs from 'grapesjs';
import plugin from 'grapesjs-advance-components';
import 'grapesjs/dist/css/grapes.min.css';
const editor = grapesjs.init({
container : '#gjs',
// ...
plugins: [plugin],
pluginsOpts: {
[plugin]: {
components:[ {
visible:true,
label:'Faq',
name:'faq',
category:'Custom',
type:'text',
componentType:'faq',
},
{
visible:true,
label:'Heading 6',
name:'heading',
category:'Text',
type:'text',
componentType:'heading',
headingType:'h6'
},
{
visible:true,
label:'Heading 1',
name:'heading',
category:'Text',
type:'text',
componentType:'heading',
headingType:'h1'
},
{
visible:true,
label:'Paragraph',
name:'paragraph',
category:'Text',
type:'text',
componentType:'paragraph',
},
{
visible:true,
label:'List',
name:'list',
category:'Text',
type:'text',
componentType:'list',
},
{
visible:true,
label:'Link',
name:'link',
category:'Text',
type:'link',
componentType:'link',
},
{
visible:true,
label:'Image',
name:'image',
category:'Media',
type:'image',
componentType:'image',
},
{
visible:true,
label:'Video',
name:'video',
category:'Media',
type:'video',
componentType:'video',
},
{
visible:true,
label:'Divider',
name:'divider',
category:'Custom',
type:'divider',
componentType:'divider',
},
{
visible:true,
label:'Checkbox',
name:'Checkbox',
category:'Form',
type:'input',
componentType:'inputElement',
formElement:{
type:'checkbox',
name:'checkbox1',
label:'Checkbox',
placeholder:'Pick the correct option'
}
},
{
visible:true,
label:'Radio',
name:'Radio',
category:'Form',
type:'input',
componentType:'inputElement',
formElement:{
type:'radio',
name:'radio1',
label:'Radio',
placeholder:'Pick the correct option'
}
},
{
visible:true,
label:'Input',
name:'Input',
category:'Form',
type:'input',
componentType:'inputElement',
formElement:{
type:'text',
name:'input1',
label:'Textfield',
placeholder:'Enter your text...',
}
},
{
visible:true,
label:'Select',
name:'Dropdown',
category:'Form',
type:'dropdown',
componentType:'dropdown',
formElement:{
type:'text',
name:'select1',
label:'Dropdown',
options:[
{label:'Option 1',value:'option1'},
{label:'Option 2',value:'option2'},
{label:'Option 3',value:'option3'}
]
}
},
{
visible:true,
label:'Textarea',
name:'Textarea',
category:'Form',
type:'textarea',
componentType:'textarea',
formElement:{
type:'text',
name:'select1',
label:'Textarea',
placeholder:'Enter your text...',
}
},
{
visible:true,
label:'Map',
name:'map',
category:'Custom',
type:'map',
componentType:'map',
},
{
visible:true,
label:'Progress Bar',
name:'Progress Bar',
category:'Custom',
type:'progress-bar',
componentType:'progress-bar',
},
{
visible:true,
label:'Button',
name:'button',
category:'Custom',
type:'button',
componentType:'button',
buttonElement:{
buttonText:'Submit Now!'
}
},
{
visible:true,
label:'Slider',
name:'slider',
category:'Custom',
type:'slider',
componentType:'slider',
},
]
}
}
// or
plugins: [
editor => plugin(editor, { /* options */ }),
],
});
Clone the repository
$ git clone https://github.com/VaibhavBansal26/grapesjs-advance-components.git
$ cd grapesjs-advance-components
Install dependencies
$ npm i
Start the dev server
$ npm start
Build the source
$ npm run build
MIT
FAQs
Grapesjs Advance Components
The npm package grapesjs-advance-components receives a total of 6 weekly downloads. As such, grapesjs-advance-components popularity was classified as not popular.
We found that grapesjs-advance-components demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Libxml2’s solo maintainer drops embargoed security fixes, highlighting the burden on unpaid volunteers who keep critical open source software secure.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.