Update builder.html
Browse files- builder.html +16 -20
builder.html
CHANGED
@@ -7,7 +7,18 @@
|
|
7 |
<!-- GrapesJS CSS -->
|
8 |
<link rel="stylesheet" href="https://unpkg.com/grapesjs/dist/css/grapes.min.css">
|
9 |
|
10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
<body>
|
12 |
<div id="gjs"></div>
|
13 |
|
@@ -33,7 +44,7 @@
|
|
33 |
property: 'width',
|
34 |
units: ['px', '%'],
|
35 |
min: 0,
|
36 |
-
default: '300px',
|
37 |
},
|
38 |
{
|
39 |
type: 'number',
|
@@ -41,22 +52,7 @@
|
|
41 |
property: 'height',
|
42 |
units: ['px', '%'],
|
43 |
min: 0,
|
44 |
-
default: '80px',
|
45 |
-
},
|
46 |
-
],
|
47 |
-
},
|
48 |
-
{
|
49 |
-
name: 'Colors',
|
50 |
-
properties: [
|
51 |
-
{
|
52 |
-
type: 'color',
|
53 |
-
label: 'Background Color',
|
54 |
-
property: 'background-color',
|
55 |
-
},
|
56 |
-
{
|
57 |
-
type: 'color',
|
58 |
-
label: 'Text Color',
|
59 |
-
property: 'color',
|
60 |
},
|
61 |
],
|
62 |
},
|
@@ -76,7 +72,7 @@
|
|
76 |
name: 'width',
|
77 |
units: ['px', '%'],
|
78 |
min: 0,
|
79 |
-
default: '300px',
|
80 |
},
|
81 |
{
|
82 |
type: 'number',
|
@@ -84,7 +80,7 @@
|
|
84 |
name: 'height',
|
85 |
units: ['px', '%'],
|
86 |
min: 0,
|
87 |
-
default: '80px',
|
88 |
},
|
89 |
],
|
90 |
components: `
|
|
|
7 |
<!-- GrapesJS CSS -->
|
8 |
<link rel="stylesheet" href="https://unpkg.com/grapesjs/dist/css/grapes.min.css">
|
9 |
|
10 |
+
<!-- Your Custom CSS -->
|
11 |
+
<style>
|
12 |
+
.gjs-block {
|
13 |
+
display: flex;
|
14 |
+
justify-content: space-between;
|
15 |
+
border: 1px solid #ccc; /* Добавляем контур для блоков */
|
16 |
+
padding: 10px;
|
17 |
+
text-align: center;
|
18 |
+
min-height: 50px; /* Добавляем минимальную высоту для блоков */
|
19 |
+
}
|
20 |
+
</style>
|
21 |
+
</head>
|
22 |
<body>
|
23 |
<div id="gjs"></div>
|
24 |
|
|
|
44 |
property: 'width',
|
45 |
units: ['px', '%'],
|
46 |
min: 0,
|
47 |
+
default: '300px', // Добавлены настройки по умолчанию
|
48 |
},
|
49 |
{
|
50 |
type: 'number',
|
|
|
52 |
property: 'height',
|
53 |
units: ['px', '%'],
|
54 |
min: 0,
|
55 |
+
default: '80px', // Добавлены настройки по умолчанию
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
},
|
57 |
],
|
58 |
},
|
|
|
72 |
name: 'width',
|
73 |
units: ['px', '%'],
|
74 |
min: 0,
|
75 |
+
default: '300px', // Добавлены настройки по умолчанию
|
76 |
},
|
77 |
{
|
78 |
type: 'number',
|
|
|
80 |
name: 'height',
|
81 |
units: ['px', '%'],
|
82 |
min: 0,
|
83 |
+
default: '80px', // Добавлены настройки по умолчанию
|
84 |
},
|
85 |
],
|
86 |
components: `
|