Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
grapesjs-blocks-bootstrap5.3
Advanced tools
grapesjs-blocks-bootstrap5.3
container
row
column
column_break
media_object
media_body
alert
tabs
badge
card
card_container
collapse
dropdown
dropdown_menu
text
header
paragraph
image
video
form
button
button_group
button_toolbar
input
input_group
form_group_input
textarea
checkbox
radio
{
blocks: {
...
}
blockCategories: {
...
}
labels: {
...
}
formPredefinedActions: null,
optionsStringSeparator: '::'
}
Option | Description | Default |
---|---|---|
default | Rebuild default component with utility settings | true |
text | Rebuild text component to re-inherit from default | true |
link | Rebuild link component to re-inherit from default and give toggle setting | true |
image | Rebuild image component to re-inherit from default | true |
video | Rebuild video component to re-inherit from default | true |
container | Container (fixed/fluid) | true |
row | Row | true |
column | Columns of all sizes | true |
column_break | Column-break (div.w-100 ) | true |
media_object | Media object | true |
alert | true | |
tabs | true | |
badge | true | |
card | Card with settings for images, image overlay, header, body, & footer components | true |
card_container | Layouts: group, deck, columns | true |
collapse | Collapse component that can be toggled via link component | true |
dropdown | Dropdown | true |
header | H1-H6 | true |
paragraph | P tag with "lead" setting | true |
form | true | |
button | true | |
button_group | true | |
button_toolbar | true | |
input | true | |
input_group | true | |
form_group_input | true | |
textarea | true | |
checkbox | true | |
radio | true |
These are the different categories of blocks as they are grouped in the Blocks sidebar panel. Set a value to false exclude entire groups of blocks (as well as the associated components).
Option | Description | Default |
---|---|---|
layout | Container, row, col, col-break, media object | true |
components | Bootstrap's Components--alert, button, card, etc. | true |
typography | Text, header, paragraph, etc. | true |
basic | Link, image, etc. | true |
forms | Form, input, textarea, etc. | true |
Same keys as Blocks, but value is the label for the block.
Option | Description | Default |
---|---|---|
text | 'Text' | |
header | 'Header' |
etc.
Option | Description | Default |
---|---|---|
gridDevices | Add devices based on BS grid breakpoints | true |
gridDevicesPanel | Build a panel in the top-left corner with device buttons (use with editor showDevices =false ) | false |
formPredefinedActions | Pass a list of predefined form actions to generate a select menu: [{name: 'Contact', value: '/contact'}, ...], if no list is passed an input box to add the action is shown | null |
optionsStringSeparator | Pass a string to identify the separator of values and labels of the select options: optionValue::optionLabel. This setting WILL BE overridden by the gjs-preset-webpage plugin if enabled | '::' |
npm i grapesjs-blocks-bootstrap5.3
git clone https://github.com/nicolafranchini/grapesjs-blocks-bootstrap5.3.git
<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-blocks-bootstrap5.3.min.js"></script>
<div id="gjs"></div>
<script type="text/javascript">
var editor = grapesjs.init({
container : '#gjs',
...
plugins: ['grapesjs-blocks-bootstrap5.3'],
pluginsOpts: {
'grapesjs-blocks-bootstrap5.3': {
blocks: {
// ...
},
blockCategories: {
// ...
},
labels: {
// ...
},
// ...
}
},
canvas: {
styles: [
'https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css'
],
scripts: [
'https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js'
],
}
});
</script>
Clone the repository
$ git clone https://github.com/nicolafranchini/grapesjs-blocks-bootstrap5.3.git
$ cd grapesjs-blocks-bootstrap5.3
Install dependencies
$ npm i
The plugin relies on GrapesJS via peerDependencies
so you have to install it manually (without adding it to package.json)
$ npm i grapesjs --no-save
Start the dev server
$ npm start
BSD 3-Clause
FAQs
GrapesJS Bootstrap v5.3 Blocks Plugin
We found that grapesjs-blocks-bootstrap5.3 demonstrated a healthy version release cadence and project activity because the last version was released less than 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.