├── .gitignore
├── LICENSE
├── README.md
├── index.html
├── package-lock.json
├── package.json
├── src
├── blocks.ts
└── index.ts
└── tsconfig.json
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | private/
3 | node_modules/
4 | dist/
5 | .eslintrc
6 | .npmrc
7 | *.log
8 | _index.html
9 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2017-current, Artur Arseniev
2 | All rights reserved.
3 |
4 | Redistribution and use in source and binary forms, with or without modification,
5 | are permitted provided that the following conditions are met:
6 |
7 | - Redistributions of source code must retain the above copyright notice, this
8 | list of conditions and the following disclaimer.
9 | - Redistributions in binary form must reproduce the above copyright notice, this
10 | list of conditions and the following disclaimer in the documentation and/or
11 | other materials provided with the distribution.
12 | - Neither the name "GrapesJS" nor the names of its contributors may be
13 | used to endorse or promote products derived from this software without
14 | specific prior written permission.
15 |
16 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
20 | ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
23 | ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # GrapesJS Blocks Flexbox
2 |
3 | This plugin adds the Flexbox block which allows creating easily flexible and responsive columns
4 |
5 | [Demo](https://codepen.io/artf/full/qpWBRW/)
6 |
7 |
8 | ## Summary
9 |
10 | * Plugin name: `grapesjs-blocks-flexbox`
11 | * Blocks
12 | * `flexbox`
13 |
14 |
15 |
16 |
17 |
18 | ## Options
19 |
20 | |Option|Description|Default|
21 | |-|-|-
22 | |`stylePrefix`|Classes prefix|`''`|
23 | |`flexboxBlock`|Use this to extend the default flexbox block|`{}`|
24 | |`labelRow`|Row label|`Row`|
25 | |`labelColumn`|Column label|`Column`|
26 |
27 |
28 |
29 |
30 |
31 | ## Download
32 |
33 | * CDN
34 | * `https://unpkg.com/grapesjs-blocks-flexbox`
35 | * NPM
36 | * `npm i grapesjs-blocks-flexbox`
37 | * GIT
38 | * `git clone https://github.com/GrapesJS/blocks-flexbox.git`
39 |
40 |
41 |
42 |
43 |
44 | ## Usage
45 |
46 | ```html
47 |
48 |
49 |
50 |
51 |
20 | This is a demo content from index.html. For the development, you shouldn't edit this file, instead you can
21 | copy and rename it to _index.html, on next server start the new file will be served, and it will be ignored by git.
22 |