{"id":18685813,"url":"https://github.com/grapesjs/blocks-basic","last_synced_at":"2025-04-04T22:07:33.365Z","repository":{"id":48701759,"uuid":"96151241","full_name":"GrapesJS/blocks-basic","owner":"GrapesJS","description":"Basic blocks for the GrapesJS editor","archived":false,"fork":false,"pushed_at":"2023-06-07T11:16:29.000Z","size":300,"stargazers_count":81,"open_issues_count":6,"forks_count":110,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-28T21:08:30.850Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GrapesJS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2017-07-03T21:18:19.000Z","updated_at":"2025-03-24T09:49:31.000Z","dependencies_parsed_at":"2024-01-29T19:30:27.676Z","dependency_job_id":"82a48d2a-6cf7-44d6-a100-34139b62e331","html_url":"https://github.com/GrapesJS/blocks-basic","commit_stats":null,"previous_names":["artf/grapesjs-blocks-basic"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrapesJS%2Fblocks-basic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrapesJS%2Fblocks-basic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrapesJS%2Fblocks-basic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrapesJS%2Fblocks-basic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GrapesJS","download_url":"https://codeload.github.com/GrapesJS/blocks-basic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247256112,"owners_count":20909240,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T10:24:21.469Z","updated_at":"2025-04-04T22:07:33.312Z","avatar_url":"https://github.com/GrapesJS.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GrapesJS Basic Blocks\n\nThis plugin contains some basic blocks for the GrapesJS editor\n\n[Demo](http://grapesjs.com/demo.html)\n\u003cbr/\u003e\n\n## Summary\n\n- Plugin name: `gjs-blocks-basic`\n- Blocks: `column1`, `column2`, `column3`, `column3-7`, `text`, `link`, `image`, `video`, `map`\n\n## Options\n\n| Option          | Description                      | Default                                                                                         |\n| --------------- | -------------------------------- | ----------------------------------------------------------------------------------------------- |\n| `blocks`        | Which blocks to add              | `['column1', 'column2', 'column3', 'column3-7', 'text', 'link', 'image', 'video', 'map']` (all) |\n| `category`      | Category name                    | `Basic`                                                                                         |\n| `flexGrid`      | Make use of flexbox for the grid | `false`                                                                                         |\n| `stylePrefix`   | Classes prefix                   | `gjs-`                                                                                          |\n| `addBasicStyle` | Use basic CSS for blocks         | `true`                                                                                          |\n| `labelColumn1`  | 1 Column label                   | `1 Column`                                                                                      |\n| `labelColumn2`  | 2 Columns label                  | `2 Columns`                                                                                     |\n| `labelColumn3`  | 3 Columns label                  | `3 Columns`                                                                                     |\n| `labelColumn37` | 3/7 Columns label                | `2 Columns 3/7`                                                                                 |\n| `labelText`     | Text label                       | `Text`                                                                                          |\n| `labelLink`     | Link label                       | `Link`                                                                                          |\n| `labelImage`    | Image label                      | `Image`                                                                                         |\n| `labelVideo`    | Video label                      | `Video`                                                                                         |\n| `labelMap`      | Map label                        | `Map`                                                                                           |\n| `rowHeight`     | Initial height                   | `75`                                                                                          |\n\n## Download\n\n* CDN\n  * `https://unpkg.com/grapesjs-blocks-basic`\n* NPM\n  * `npm i grapesjs-blocks-basic`\n* GIT\n  * `git clone https://github.com/GrapesJS/blocks-basic.git`\n\n## Usage\n\nDirectly in the browser\n```html\n\u003clink href=\"https://unpkg.com/grapesjs/dist/css/grapes.min.css\" rel=\"stylesheet\"/\u003e\n\u003cscript src=\"https://unpkg.com/grapesjs\"\u003e\u003c/script\u003e\n\u003cscript src=\"path/to/grapesjs-blocks-basic.min.js\"\u003e\u003c/script\u003e\n\n\u003cdiv id=\"gjs\"\u003e\u003c/div\u003e\n\n\u003cscript type=\"text/javascript\"\u003e\n  var editor = grapesjs.init({\n    fromElement: 1,\n    container: \"#gjs\",\n    plugins: [\"gjs-blocks-basic\"],\n    pluginsOpts: {\n      \"gjs-blocks-basic\": {\n        /* ...options */\n      }\n    }\n  });\n\u003c/script\u003e\n```\n\nModern javascript\n```js\nimport grapesjs from 'grapesjs';\nimport plugin from 'grapesjs-blocks-basic';\n\nconst editor = grapesjs.init({\n  container : '#gjs',\n  // ...\n  plugins: [plugin],\n  pluginsOpts: {\n    [plugin]: { /* options */ }\n  }\n  // or\n  plugins: [\n    editor =\u003e plugin(editor, { /* options */ }),\n  ],\n});\n```\n\n## Development\n\nClone the repository\n\n```sh\n$ git clone https://github.com/GrapesJS/blocks-basic.git\n$ cd grapesjs-blocks-basic\n```\n\nInstall it\n\n```sh\n$ npm i\n```\n\nStart the dev server\n\n```sh\n$ npm start\n```\n\nBuild before the commit. This will also increase the patch level version of the package\n\n```sh\n$ npm run build\n```\n\n\n## License\n\nBSD 3-Clause\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrapesjs%2Fblocks-basic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrapesjs%2Fblocks-basic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrapesjs%2Fblocks-basic/lists"}