bootstrap5-p1
Version:
A custom GrapesJS plugin for Bootstrap 5.1.3.
14 lines (11 loc) • 384 B
JavaScript
import block from "./block.js";
/**
* Add the block to the editor
* @param {Editor} editor - Grapes JS Editor instance
* @param {Object} opts - Global block options
* @param {Object} blockProps - Specific block options
*/
export default (editor, opts = {}, blockProps) => {
// Add the block to the editor
editor.BlockManager.add("column6-3-3", block(opts, blockProps));
};