DmitrMakeev commited on
Commit
2f81283
·
verified ·
1 Parent(s): 186ddbb

Upload 4 files

Browse files
editor /blocks/elements.js ADDED
@@ -0,0 +1,546 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ blockManager.add('layout-section', {
2
+ category: categories.layout,
3
+ attributes: {
4
+ title: 'Insert section'
5
+ },
6
+ label:
7
+ `
8
+ <div>
9
+
10
+ <svg data-icon="index" aria-hidden="true" focusable="false" width="62" height="57" viewBox="0 0 62 57" class="bem-Svg" style="display: block; transform: translate(0px, 0px);"><path opacity=".2" fill="currentColor" d="M5 10h52v16H5z"></path><g fill="currentColor"><path d="M5 10h2v4H5zm50 0h2v4h-2zM7 10h2v2H7zm16 0h4v2h-4zm-6 0h4v2h-4zm-6 0h4v2h-4zm18 0h4v2h-4zm6 0h4v2h-4zm6 0h4v2h-4zM23 24h4v2h-4zm-6 0h4v2h-4zm-6 0h4v2h-4zm18 0h4v2h-4zm6 0h4v2h-4zm6 0h4v2h-4zm6-14h4v2h-4zm0 14h4v2h-4z"></path><path d="M53 10h4v2h-4zm2 12h2v4h-2zM5 22h2v4H5zm0-6h2v4H5zm50 0h2v4h-2zm-2 8h2v2h-2z"></path><path d="M5 24h4v2H5z"></path></g><g opacity=".3" fill="currentColor"><path d="M5 29h2v4H5zm50 0h2v4h-2zM7 29h2v2H7zm16 0h4v2h-4zm-6 0h4v2h-4zm-6 0h4v2h-4zm18 0h4v2h-4zm6 0h4v2h-4zm6 0h4v2h-4zM23 43h4v2h-4zm-6 0h4v2h-4zm-6 0h4v2h-4zm18 0h4v2h-4zm6 0h4v2h-4zm6 0h4v2h-4zm6-14h4v2h-4zm0 14h4v2h-4z"></path><path d="M53 29h4v2h-4zm2 12h2v4h-2zM5 41h2v4H5zm0-6h2v4H5zm50 0h2v4h-2zm-2 8h2v2h-2z"></path><path d="M5 43h4v2H5z"></path></g><path opacity=".4" d="M57 10v16H5V10h52m1-1H4v18h54V9z"></path></svg>
11
+ <div class="uk-text-normal uk-text-bold">Section</div>
12
+ </div>
13
+ `,
14
+ content:
15
+ `
16
+ <div class="uk-section uk-section-default uk-padding-remove uk-position-relative">
17
+ <div class="uk-container uk-margin-small uk-padding-medium uk-container-large">
18
+ <div class="uk-height-large uk-placeholder uk-flex uk-flex-middle uk-flex-center">[Remove and insert your <i>components</i>]</div>
19
+ </div>
20
+ </div>
21
+ `,
22
+ render: ({ model, className }) => `<div class="${className}__my-wrap"> ${model.get('label')} </div>`,
23
+ });
24
+ blockManager.add('layout-container', {
25
+ category: categories.layout,
26
+ attributes: {
27
+ title: 'Insert container'
28
+ },
29
+ label:
30
+ `
31
+ <div>
32
+ <svg data-icon="index" aria-hidden="true" focusable="false" width="62" height="57" viewBox="0 0 62 57" class="bem-Svg" style="display: block; transform: translate(0px, 0px);"><path opacity=".2" fill="currentColor" d="M14 10h34v34H14z"></path><g fill="currentColor"><path d="M14 10h2v4h-2zm32 0h2v4h-2zm-30 0h2v2h-2zm10 0h4v2h-4zm-6 0h4v2h-4zm12 0h4v2h-4zm-6 32h4v2h-4zm-6 0h4v2h-4zm12 0h4v2h-4zm6-32h4v2h-4zm0 32h4v2h-4z"></path><path d="M44 10h4v2h-4zm2 30h2v4h-2zm-32 0h2v4h-2zm0-18h2v4h-2zm0-6h2v4h-2zm32 6h2v4h-2zm-32 6h2v4h-2zm32 0h2v4h-2zm-32 6h2v4h-2zm32 0h2v4h-2zm0-18h2v4h-2zm-2 26h2v2h-2z"></path><path d="M14 42h4v2h-4z"></path></g><path opacity=".4" d="M48 10v34H14V10h34m1-1H13v36h36V9z"></path></svg>
33
+ <div class="uk-text-normal uk-text-bold">Container</div>
34
+ </div>
35
+ `,
36
+ content: `<div class="uk-container uk-padding-large"></div>`,
37
+ render: ({ model, className }) => `<div class="${className}__my-wrap"> ${model.get('label')} </div>`,
38
+ });
39
+ blockManager.add('layout-grid', {
40
+ category: categories.layout,
41
+ attributes: {
42
+ title: 'Insert grid'
43
+ },
44
+ label:
45
+ `
46
+ <div>
47
+ <svg data-icon="index" aria-hidden="true" focusable="false" width="60" height="57" viewBox="0 0 60 57" class="bem-Svg" style="display: block; transform: translate(0px, 0px);"><path opacity=".4" d="M28 9v15H13V9h15zm1-1H12v17h17V8z"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M13 9h4v2h-2v2h-2V9zm0 9v-3h2v3h-2zm0 2v4h4v-2h-2v-2h-2zm13 0v2h-2v2h4v-4h-2zm2-2v-3h-2v3h2zm-2-7v2h2V9h-4v2h2zm-4 0h-3V9h3v2zm0 11h-3v2h3v-2z" fill="currentColor"></path><path opacity=".2" d="M32 9h15v15H32V9z" fill="currentColor"></path><path opacity=".4" d="M47 9v15H32V9h15zm1-1H31v17h17V8z"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M32 9h4v2h-2v2h-2V9zm0 9v-3h2v3h-2zm0 2v4h4v-2h-2v-2h-2zm13 0v2h-2v2h4v-4h-2zm2-2v-3h-2v3h2zm-2-7v2h2V9h-4v2h2zm-4 0h-3V9h3v2zm0 11h-3v2h3v-2z" fill="currentColor"></path><path opacity=".2" d="M32 28h15v15H32V28z" fill="currentColor"></path><path opacity=".4" d="M47 28v15H32V28h15zm1-1H31v17h17V27z"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M32 28h4v2h-2v2h-2v-4zm0 9v-3h2v3h-2zm0 2v4h4v-2h-2v-2h-2zm13 0v2h-2v2h4v-4h-2zm2-2v-3h-2v3h2zm-2-7v2h2v-4h-4v2h2zm-4 0h-3v-2h3v2zm0 11h-3v2h3v-2z" fill="currentColor"></path><path opacity=".2" d="M13 28h15v15H13V28z" fill="currentColor"></path><path opacity=".4" d="M28 28v15H13V28h15zm1-1H12v17h17V27z"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M13 28h4v2h-2v2h-2v-4zm0 9v-3h2v3h-2zm0 2v4h4v-2h-2v-2h-2zm13 0v2h-2v2h4v-4h-2zm2-2v-3h-2v3h2zm-2-7v2h2v-4h-4v2h2zm-4 0h-3v-2h3v2zm0 11h-3v2h3v-2z" fill="currentColor"></path></svg>
48
+ <div class="uk-text-normal uk-text-bold">Grid</div>
49
+ </div>
50
+ `,
51
+ content:
52
+ `
53
+ <div class="uk-text-center uk-grid">
54
+ <div class="uk-width-auto">
55
+ <div class="uk-card uk-card-default uk-card-body">Auto</div>
56
+ </div>
57
+ <div class="uk-width-1-3">
58
+ <div class="uk-card uk-card-default uk-card-body">1-3</div>
59
+ </div>
60
+ <div class="uk-width-expand">
61
+ <div class="uk-card uk-card-default uk-card-body">Expand</div>
62
+ </div>
63
+ </div>
64
+ `,
65
+ render: ({ model, className }) => `<div class="${className}__my-wrap"> ${model.get('label')} </div>`,
66
+ });
67
+ blockManager.add('layout-column', {
68
+ category: categories.layout,
69
+ attributes: {
70
+ title: 'Insert column'
71
+ },
72
+ label:
73
+ `
74
+ <div>
75
+ <svg data-icon="index" aria-hidden="true" focusable="false" width="62" height="57" viewBox="0 0 62 57" class="bem-Svg" style="display: block; transform: translate(0px, 0px);"><path opacity=".2" fill="currentColor" d="M14 10h16v34H14zm19 0h16v34H33z"></path><g fill="currentColor"><path d="M14 10h2v4h-2zm14 0h2v4h-2zm-12 0h2v2h-2zm4 0h4v2h-4zm0 32h4v2h-4z"></path><path d="M26 10h4v2h-4zm2 30h2v4h-2zm-14 0h2v4h-2zm0-18h2v4h-2zm0-6h2v4h-2zm14 6h2v4h-2zm-14 6h2v4h-2zm14 0h2v4h-2zm-14 6h2v4h-2zm14 0h2v4h-2zm0-18h2v4h-2zm-2 26h2v2h-2z"></path><path d="M14 42h4v2h-4zm19-32h2v4h-2zm14 0h2v4h-2zm-12 0h2v2h-2zm4 0h4v2h-4zm0 32h4v2h-4z"></path><path d="M45 10h4v2h-4zm2 30h2v4h-2zm-14 0h2v4h-2zm0-18h2v4h-2zm0-6h2v4h-2zm14 6h2v4h-2zm-14 6h2v4h-2zm14 0h2v4h-2zm-14 6h2v4h-2zm14 0h2v4h-2zm0-18h2v4h-2zm-2 26h2v2h-2z"></path><path d="M33 42h4v2h-4z"></path></g><path opacity=".4" d="M30 10v34H14V10h16m1-1H13v36h18V9zm18 1v34H33V10h16m1-1H32v36h18V9z"></path></svg>
76
+ <div class="uk-text-normal uk-text-bold">Columns</div>
77
+ </div>
78
+ `,
79
+ content:
80
+ `
81
+ <div class="uk-column-1-2">
82
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.</p>
83
+
84
+ <p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
85
+
86
+ <p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore.</p>
87
+ </div>
88
+ `,
89
+ render: ({ model, className }) => `<div class="${className}__my-wrap"> ${model.get('label')} </div>`,
90
+ });
91
+ blockManager.add('basic-div', {
92
+ category: categories.basic,
93
+ attributes: {
94
+ title: 'Insert div'
95
+ },
96
+ label:
97
+ `
98
+ <div>
99
+ <svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
100
+ width="42" height="57"
101
+ viewBox="0 0 172 172"
102
+ style=" fill:#000000;"><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><path d="M0,172v-172h172v172z" fill="none"></path><g fill="#b6c6d8"><path d="M49.54406,13.76c-19.72314,0 -35.78406,16.06092 -35.78406,35.78406v72.90515c0,19.72622 16.06092,35.79078 35.78406,35.79078h72.90515c19.72622,0 35.79078,-16.06092 35.79078,-35.78406v-72.91187c0,-19.72314 -16.06092,-35.78406 -35.78406,-35.78406zM49.54406,20.64h72.91187c16.0047,0 28.90406,12.89936 28.90406,28.90406v72.91187c0,16.0047 -12.90228,28.90406 -28.91078,28.90406h-72.90515c-16.0047,0 -28.90406,-12.90228 -28.90406,-28.91078v-72.90515c0,-16.0047 12.89936,-28.90406 28.90406,-28.90406zM56.85406,37.84c-10.46213,0 -19.01406,8.55193 -19.01406,19.01406v58.29187c0,10.46213 8.55193,19.01406 19.01406,19.01406h58.29187c10.46213,0 19.01406,-8.55193 19.01406,-19.01406v-58.29187c0,-10.46213 -8.55595,-19.01406 -19.02078,-19.01406zM56.85406,44.72h58.28515c6.74893,0 12.14078,5.38931 12.14078,12.13406v58.29187c0,6.74475 -5.38931,12.13406 -12.13406,12.13406h-58.29187c-6.74475,0 -12.13406,-5.38931 -12.13406,-12.13406v-58.29187c0,-6.74475 5.38931,-12.13406 12.13406,-12.13406zM65.36,65.36v3.44v37.84h41.28v-41.28zM72.24,72.24h27.52v27.52h-27.52z"></path></g></g></svg>
103
+ <div class="uk-text-normal uk-text-bold">Div Block</div>
104
+ </div>
105
+ `,
106
+ content: `<div class="uk-padding-large"></div>`,
107
+ render: ({ model, className }) => `<div class="${className}__my-wrap"> ${model.get('label')} </div>`,
108
+ });
109
+ blockManager.add('basic-list-block', {
110
+ category: categories.basic,
111
+ attributes: {
112
+ title: 'Insert list'
113
+ },
114
+ label:
115
+ `
116
+ <div>
117
+ <svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
118
+ width="42" height="57"
119
+ viewBox="0 0 172 172"
120
+ style=" fill:#000000;"><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><path d="M0,172v-172h172v172z" fill="none"></path><g fill="#b6c6d8"><path d="M17.2,28.66667v22.93333h22.93333v-22.93333zM68.8,34.4c-2.06765,-0.02924 -3.99087,1.05709 -5.03322,2.843c-1.04236,1.78592 -1.04236,3.99474 0,5.78066c1.04236,1.78592 2.96558,2.87225 5.03322,2.843h80.26667c2.06765,0.02924 3.99087,-1.05709 5.03322,-2.843c1.04236,-1.78592 1.04236,-3.99474 0,-5.78066c-1.04236,-1.78592 -2.96558,-2.87225 -5.03322,-2.843zM17.2,74.53333v22.93333h22.93333v-22.93333zM68.8,80.26667c-2.06765,-0.02924 -3.99087,1.05709 -5.03322,2.843c-1.04236,1.78592 -1.04236,3.99474 0,5.78066c1.04236,1.78592 2.96558,2.87225 5.03322,2.843h80.26667c2.06765,0.02924 3.99087,-1.05709 5.03322,-2.843c1.04236,-1.78592 1.04236,-3.99474 0,-5.78066c-1.04236,-1.78592 -2.96558,-2.87225 -5.03322,-2.843zM17.2,120.4v22.93333h22.93333v-22.93333zM68.8,126.13333c-2.06765,-0.02924 -3.99087,1.05709 -5.03322,2.843c-1.04236,1.78592 -1.04236,3.99474 0,5.78066c1.04236,1.78592 2.96558,2.87225 5.03322,2.843h80.26667c2.06765,0.02924 3.99087,-1.05709 5.03322,-2.843c1.04236,-1.78592 1.04236,-3.99474 0,-5.78066c-1.04236,-1.78592 -2.96558,-2.87225 -5.03322,-2.843z"></path></g></g></svg>
121
+ <div class="uk-text-normal uk-text-bold">List Block</div>
122
+ </div>
123
+ `,
124
+ content: `
125
+ <ul class="uk-list">
126
+ <li>List item 1</li>
127
+ <li>List item 2</li>
128
+ <li>List item 3</li>
129
+ </ul>
130
+ `,
131
+ render: ({ model, className }) => `<div class="${className}__my-wrap"> ${model.get('label')} </div>`,
132
+ });
133
+ blockManager.add('basic-button', {
134
+ category: categories.basic,
135
+ attributes: {
136
+ title: 'Insert button'
137
+ },
138
+ label:
139
+ `
140
+ <div>
141
+ <svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
142
+ width="42" height="57"
143
+ viewBox="0 0 172 172"
144
+ style=" fill:#000000;"><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><path d="M0,172v-172h172v172z" fill="none"></path><g fill="#b6c6d8"><path d="M13.76,41.28c-7.59219,0 -13.76,6.16781 -13.76,13.76v61.92c0,7.59219 6.16781,13.76 13.76,13.76h144.48c7.59219,0 13.76,-6.16781 13.76,-13.76v-61.92c0,-7.59219 -6.16781,-13.76 -13.76,-13.76zM115.32063,76.74156c5.83187,0 9.54062,3.91031 9.54062,10.2125c0,6.31562 -3.70875,10.22594 -9.54062,10.22594c-5.85875,0 -9.5675,-3.91031 -9.5675,-10.22594c0,-6.30219 3.74906,-10.2125 9.5675,-10.2125zM23.78438,77.27906h9.04344c3.87,0 6.14094,1.81406 6.14094,4.82406c0,2.08281 -1.54531,3.84312 -3.60125,4.12531v0.25531c2.52625,0.13438 4.50156,2.10969 4.50156,4.58219c0,3.39969 -2.63375,5.59 -6.78594,5.59h-9.29875zM44.77375,77.27906h4.93156v12.16094c0,2.2575 1.23625,3.60125 3.42656,3.60125c2.19031,0 3.41312,-1.34375 3.41312,-3.60125v-12.16094h4.93156v12.685c0,4.35375 -3.30563,7.21594 -8.34469,7.21594c-5.03906,0 -8.35813,-2.86219 -8.35813,-7.21594zM66.38125,77.27906h16.11156v3.95062h-5.61688v15.42625h-4.90469v-15.42625h-5.59zM86.30906,77.27906h16.11156v3.95062h-5.60344v15.42625h-4.91812v-15.42625h-5.59zM129.90031,77.27906h3.93719l8.07594,10.91125h0.25531v-10.91125h4.67625v19.37687h-3.91031l-8.10281,-11.01875h-0.25531v11.01875h-4.67625zM28.71594,80.74594v4.42094h2.60688c1.80062,0 2.84875,-0.83313 2.84875,-2.20375c0,-1.38406 -0.98094,-2.21719 -2.66063,-2.21719zM115.32063,80.82656c-2.72781,0 -4.54188,2.39187 -4.54188,6.1275c0,3.74906 1.78719,6.14094 4.54188,6.14094c2.72781,0 4.52844,-2.39187 4.52844,-6.14094c0,-3.73563 -1.81406,-6.1275 -4.52844,-6.1275zM28.71594,88.16344v5.02563h2.98313c2.0425,0 3.15781,-0.91375 3.15781,-2.55313c0,-1.58562 -1.14219,-2.4725 -3.19813,-2.4725z"></path></g></g></svg>
145
+ <div class="uk-text-normal uk-text-bold">Button</div>
146
+ </div>
147
+ `,
148
+ content: `<button class="uk-button uk-button-default">Default</button>`,
149
+ render: ({ model, className }) => `<div class="${className}__my-wrap"> ${model.get('label')} </div>`,
150
+ });
151
+ blockManager.add('basic-left-navbar', {
152
+ category: categories.basic,
153
+ attributes: {
154
+ title: 'Insert left navbar'
155
+ },
156
+ label:
157
+ `
158
+ <div>
159
+ <svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
160
+ width="42" height="57"
161
+ viewBox="0 0 172 172"
162
+ style=" fill:#000000;"><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><path d="M0,172v-172h172v172z" fill="none"></path><g fill="#b6c6d8"><path d="M19.17531,47.9786c-10.67088,0 -19.35,8.68584 -19.35,19.35672v40.76937c0,10.67088 8.67912,19.35672 19.35,19.35672h133.64937c10.67088,0 19.35,-8.68928 19.35,-19.35672v-40.76937c0,-10.67088 -8.67912,-19.35672 -19.35,-19.35672zM19.17531,55.2214h84.02469v64.99719h-84.02469c-6.68048,0 -12.12063,-5.43343 -12.12063,-12.11391v-40.76937c0,-6.68048 5.44015,-12.11391 12.12063,-12.11391zM110.08,55.2214h42.74469c6.68048,0 12.12063,5.43343 12.12063,12.11391v40.76937c0,6.68048 -5.44015,12.11391 -12.12063,12.11391h-42.74469zM13.76,58.48c-1.89986,0 -3.44,1.54014 -3.44,3.44c0,1.89986 1.54014,3.44 3.44,3.44c1.89986,0 3.44,-1.54014 3.44,-3.44c0,-1.89986 -1.54014,-3.44 -3.44,-3.44zM34.4,58.48c-1.89986,0 -3.44,1.54014 -3.44,3.44c0,1.89986 1.54014,3.44 3.44,3.44c1.89986,0 3.44,-1.54014 3.44,-3.44c0,-1.89986 -1.54014,-3.44 -3.44,-3.44zM55.04,58.48c-1.89986,0 -3.44,1.54014 -3.44,3.44c0,1.89986 1.54014,3.44 3.44,3.44c1.89986,0 3.44,-1.54014 3.44,-3.44c0,-1.89986 -1.54014,-3.44 -3.44,-3.44zM75.68,58.48c-1.89986,0 -3.44,1.54014 -3.44,3.44c0,1.89986 1.54014,3.44 3.44,3.44c1.89986,0 3.44,-1.54014 3.44,-3.44c0,-1.89986 -1.54014,-3.44 -3.44,-3.44zM96.32,58.48c-1.89986,0 -3.44,1.54014 -3.44,3.44c0,1.89986 1.54014,3.44 3.44,3.44c1.89986,0 3.44,-1.54014 3.44,-3.44c0,-1.89986 -1.54014,-3.44 -3.44,-3.44zM24.08,68.8c-1.89986,0 -3.44,1.54014 -3.44,3.44c0,1.89986 1.54014,3.44 3.44,3.44c1.89986,0 3.44,-1.54014 3.44,-3.44c0,-1.89986 -1.54014,-3.44 -3.44,-3.44zM44.72,68.8c-1.89986,0 -3.44,1.54014 -3.44,3.44c0,1.89986 1.54014,3.44 3.44,3.44c1.89986,0 3.44,-1.54014 3.44,-3.44c0,-1.89986 -1.54014,-3.44 -3.44,-3.44zM65.36,68.8c-1.89986,0 -3.44,1.54014 -3.44,3.44c0,1.89986 1.54014,3.44 3.44,3.44c1.89986,0 3.44,-1.54014 3.44,-3.44c0,-1.89986 -1.54014,-3.44 -3.44,-3.44zM86,68.8c-1.89986,0 -3.44,1.54014 -3.44,3.44c0,1.89986 1.54014,3.44 3.44,3.44c1.89986,0 3.44,-1.54014 3.44,-3.44c0,-1.89986 -1.54014,-3.44 -3.44,-3.44zM13.76,79.12c-1.89986,0 -3.44,1.54014 -3.44,3.44c0,1.89986 1.54014,3.44 3.44,3.44c1.89986,0 3.44,-1.54014 3.44,-3.44c0,-1.89986 -1.54014,-3.44 -3.44,-3.44zM34.4,79.12c-1.89986,0 -3.44,1.54014 -3.44,3.44c0,1.89986 1.54014,3.44 3.44,3.44c1.89986,0 3.44,-1.54014 3.44,-3.44c0,-1.89986 -1.54014,-3.44 -3.44,-3.44zM55.04,79.12c-1.89986,0 -3.44,1.54014 -3.44,3.44c0,1.89986 1.54014,3.44 3.44,3.44c1.89986,0 3.44,-1.54014 3.44,-3.44c0,-1.89986 -1.54014,-3.44 -3.44,-3.44zM75.68,79.12c-1.89986,0 -3.44,1.54014 -3.44,3.44c0,1.89986 1.54014,3.44 3.44,3.44c1.89986,0 3.44,-1.54014 3.44,-3.44c0,-1.89986 -1.54014,-3.44 -3.44,-3.44zM96.32,79.12c-1.89986,0 -3.44,1.54014 -3.44,3.44c0,1.89986 1.54014,3.44 3.44,3.44c1.89986,0 3.44,-1.54014 3.44,-3.44c0,-1.89986 -1.54014,-3.44 -3.44,-3.44zM24.08,89.44c-1.89986,0 -3.44,1.54014 -3.44,3.44c0,1.89986 1.54014,3.44 3.44,3.44c1.89986,0 3.44,-1.54014 3.44,-3.44c0,-1.89986 -1.54014,-3.44 -3.44,-3.44zM44.72,89.44c-1.89986,0 -3.44,1.54014 -3.44,3.44c0,1.89986 1.54014,3.44 3.44,3.44c1.89986,0 3.44,-1.54014 3.44,-3.44c0,-1.89986 -1.54014,-3.44 -3.44,-3.44zM65.36,89.44c-1.89986,0 -3.44,1.54014 -3.44,3.44c0,1.89986 1.54014,3.44 3.44,3.44c1.89986,0 3.44,-1.54014 3.44,-3.44c0,-1.89986 -1.54014,-3.44 -3.44,-3.44zM86,89.44c-1.89986,0 -3.44,1.54014 -3.44,3.44c0,1.89986 1.54014,3.44 3.44,3.44c1.89986,0 3.44,-1.54014 3.44,-3.44c0,-1.89986 -1.54014,-3.44 -3.44,-3.44zM13.76,99.76c-1.89986,0 -3.44,1.54014 -3.44,3.44c0,1.89986 1.54014,3.44 3.44,3.44c1.89986,0 3.44,-1.54014 3.44,-3.44c0,-1.89986 -1.54014,-3.44 -3.44,-3.44zM34.4,99.76c-1.89986,0 -3.44,1.54014 -3.44,3.44c0,1.89986 1.54014,3.44 3.44,3.44c1.89986,0 3.44,-1.54014 3.44,-3.44c0,-1.89986 -1.54014,-3.44 -3.44,-3.44zM55.04,99.76c-1.89986,0 -3.44,1.54014 -3.44,3.44c0,1.89986 1.54014,3.44 3.44,3.44c1.89986,0 3.44,-1.54014 3.44,-3.44c0,-1.89986 -1.54014,-3.44 -3.44,-3.44zM75.68,99.76c-1.89986,0 -3.44,1.54014 -3.44,3.44c0,1.89986 1.54014,3.44 3.44,3.44c1.89986,0 3.44,-1.54014 3.44,-3.44c0,-1.89986 -1.54014,-3.44 -3.44,-3.44zM96.32,99.76c-1.89986,0 -3.44,1.54014 -3.44,3.44c0,1.89986 1.54014,3.44 3.44,3.44c1.89986,0 3.44,-1.54014 3.44,-3.44c0,-1.89986 -1.54014,-3.44 -3.44,-3.44zM24.08,110.08c-1.89986,0 -3.44,1.54014 -3.44,3.44c0,1.89986 1.54014,3.44 3.44,3.44c1.89986,0 3.44,-1.54014 3.44,-3.44c0,-1.89986 -1.54014,-3.44 -3.44,-3.44zM44.72,110.08c-1.89986,0 -3.44,1.54014 -3.44,3.44c0,1.89986 1.54014,3.44 3.44,3.44c1.89986,0 3.44,-1.54014 3.44,-3.44c0,-1.89986 -1.54014,-3.44 -3.44,-3.44zM65.36,110.08c-1.89986,0 -3.44,1.54014 -3.44,3.44c0,1.89986 1.54014,3.44 3.44,3.44c1.89986,0 3.44,-1.54014 3.44,-3.44c0,-1.89986 -1.54014,-3.44 -3.44,-3.44zM86,110.08c-1.89986,0 -3.44,1.54014 -3.44,3.44c0,1.89986 1.54014,3.44 3.44,3.44c1.89986,0 3.44,-1.54014 3.44,-3.44c0,-1.89986 -1.54014,-3.44 -3.44,-3.44z"></path></g></g></svg>
163
+ <div class="uk-text-normal uk-text-bold">Left Bar</div>
164
+ </div>
165
+ `,
166
+ content: `
167
+ <ul class="uk-nav uk-nav-default">
168
+ <li class="uk-active"><a href="#">Active</a></li>
169
+ <li><a href="#">Item</a></li>
170
+ <li><a href="#">Item</a></li>
171
+ </ul>
172
+ `,
173
+ render: ({ model, className }) => `<div class="${className}__my-wrap"> ${model.get('label')} </div>`,
174
+ });
175
+ blockManager.add('basic-navbar', {
176
+ category: categories.basic,
177
+ attributes: {
178
+ title: 'Insert navbar'
179
+ },
180
+ label:
181
+ `
182
+ <div>
183
+ <svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
184
+ width="42" height="57"
185
+ viewBox="0 0 172 172"
186
+ style=" fill:#000000;"><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><path d="M0,172v-172h172v172z" fill="none"></path><g fill="#b6c6d8"><path d="M21.5,35.83333c-2.58456,-0.03655 -4.98858,1.32136 -6.29153,3.55376c-1.30295,2.2324 -1.30295,4.99342 0,7.22582c1.30295,2.2324 3.70697,3.59031 6.29153,3.55376h129c2.58456,0.03655 4.98858,-1.32136 6.29153,-3.55376c1.30295,-2.2324 1.30295,-4.99342 0,-7.22582c-1.30295,-2.2324 -3.70697,-3.59031 -6.29153,-3.55376zM21.5,78.83333c-2.58456,-0.03655 -4.98858,1.32136 -6.29153,3.55376c-1.30295,2.2324 -1.30295,4.99342 0,7.22582c1.30295,2.2324 3.70697,3.59031 6.29153,3.55376h129c2.58456,0.03655 4.98858,-1.32136 6.29153,-3.55376c1.30295,-2.2324 1.30295,-4.99342 0,-7.22582c-1.30295,-2.2324 -3.70697,-3.59031 -6.29153,-3.55376zM21.5,121.83333c-2.58456,-0.03655 -4.98858,1.32136 -6.29153,3.55376c-1.30295,2.2324 -1.30295,4.99342 0,7.22582c1.30295,2.2324 3.70697,3.59031 6.29153,3.55376h129c2.58456,0.03655 4.98858,-1.32136 6.29153,-3.55376c1.30295,-2.2324 1.30295,-4.99342 0,-7.22582c-1.30295,-2.2324 -3.70697,-3.59031 -6.29153,-3.55376z"></path></g></g></svg>
187
+ <div class="uk-text-normal uk-text-bold">Navbar</div>
188
+ </div>
189
+ `,
190
+ content:
191
+ `
192
+ <div class="uk-width-1-1 uk-box-shadow-small uk-sticky">
193
+ <div class="uk-padding-remove">
194
+ <div>
195
+ <nav class="uk-navbar-container uk-height-auto uk-navbar" uk-navbar="mode: click">
196
+ <div class="nav-overlay uk-navbar-left uk-width-expand">
197
+ <ul class="uk-navbar-nav">
198
+ <li>
199
+ <a href="#">
200
+ <span>MyLinkPreview</span>
201
+ </a>
202
+ </li>
203
+ <li>
204
+ <a href="#" class="uk-text-capitalize">Demo</a>
205
+ </li>
206
+ <li>
207
+ <a href="#" class="uk-text-capitalize">Get API Key</a>
208
+ </li>
209
+ <li>
210
+ <a href="#" class="uk-text-capitalize">Documentaion</a>
211
+ </li>
212
+ <li>
213
+ <a href="#" class="uk-text-capitalize">Pricing</a>
214
+ </li>
215
+ </ul>
216
+ </div>
217
+ <div class="nav-overlay uk-navbar-right">
218
+ <ul class="uk-navbar-nav">
219
+ <li class="uk-text-small">
220
+ <a class="uk-text-capitalize" href="#">My Dashboard <span uk-icon="icon: arrow-right; ratio: 0.72" class="uk-icon"></span></a>
221
+ </li>
222
+ </ul>
223
+ </div>
224
+ </nav>
225
+ </div>
226
+ </div>
227
+ </div>
228
+ `,
229
+ render: ({ model, className }) => `<div class="${className}__my-wrap"> ${model.get('label')} </div>`,
230
+ });
231
+ blockManager.add('basic-search', {
232
+ category: categories.basic,
233
+ attributes: {
234
+ title: 'Insert navbar'
235
+ },
236
+ label:
237
+ `
238
+ <div>
239
+ <svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
240
+ width="42" height="57"
241
+ viewBox="0 0 172 172"
242
+ style=" fill:#000000;"><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><path d="M0,172v-172h172v172z" fill="none"></path><g fill="#b6c6d8"><path d="M14.33333,43c-7.91917,0 -14.33333,6.41417 -14.33333,14.33333v57.33333c0,7.91917 6.41417,14.33333 14.33333,14.33333h143.33333c7.91917,0 14.33333,-6.41417 14.33333,-14.33333v-57.33333c0,-7.91917 -6.41417,-14.33333 -14.33333,-14.33333zM126.2985,57.34733c1.03732,0.03583 2.08919,0.14177 3.14941,0.30794c9.00133,1.41183 16.64984,8.03574 19.63834,16.64291c2.58,7.43183 1.38082,14.26995 -1.69368,19.96028l6.69076,6.69076c2.795,2.795 2.795,7.33911 0,10.13411c-2.795,2.795 -7.33911,2.795 -10.13411,0l-6.69076,-6.69076c-5.68317,3.08167 -12.52846,4.27368 -19.96028,1.69368c-8.60717,-2.9885 -15.23107,-10.63701 -16.64291,-19.63834c-2.49266,-15.91 10.08344,-29.63801 25.64323,-29.10059zM125.41667,68.97917c-7.42133,0 -13.4375,6.01617 -13.4375,13.4375c0,7.42133 6.01617,13.4375 13.4375,13.4375c7.42133,0 13.4375,-6.01617 13.4375,-13.4375c0,-7.42133 -6.01617,-13.4375 -13.4375,-13.4375z"></path></g></g></svg>
243
+ <div class="uk-text-normal uk-text-bold">Search Bar</div>
244
+ </div>
245
+ `,
246
+ content: `
247
+ <form class="uk-search uk-search-default">
248
+ <input class="uk-search-input" type="search" placeholder="Search...">
249
+ </form>
250
+ `,
251
+ render: ({ model, className }) => `<div class="${className}__my-wrap"> ${model.get('label')} </div>`,
252
+ });
253
+ blockManager.add('basic-hr', {
254
+ category: categories.basic,
255
+ attributes: {
256
+ title: 'Insert hr'
257
+ },
258
+ label:
259
+ `
260
+ <div>
261
+ <svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
262
+ width="42" height="57"
263
+ viewBox="0 0 172 172"
264
+ style=" fill:#000000;"><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><path d="M0,172v-172h172v172z" fill="none"></path><g fill="#b6c6d8"><path d="M8.6,83.85h154.8v2.15h-154.8z"></path></g></g></svg>
265
+ <div class="uk-text-normal uk-text-bold">Hr Block</div>
266
+ </div>
267
+ `,
268
+ content: `<hr/>`,
269
+ render: ({ model, className }) => `<div class="${className}__my-wrap"> ${model.get('label')} </div>`,
270
+ });
271
+ blockManager.add('typography-heading', {
272
+ category: categories.typography,
273
+ attributes: {
274
+ title: 'Insert heading'
275
+ },
276
+ label:
277
+ `
278
+ <div>
279
+ <svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
280
+ width="42" height="57"
281
+ viewBox="0 0 172 172"
282
+ style=" fill:#000000;"><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><path d="M0,172v-172h172v172z" fill="none"></path><g fill="#b6c6d8"><path d="M75.25,21.5v53.75h-43v-53.75h-32.25v129h32.25v-53.75h43v53.75h32.25v-129zM172,21.5v129h-25.155v-96.062c0,0 -11.38425,5.4825 -24.3595,5.4825v-21.25275c15.96375,-3.94525 28.06825,-10.4275 34.26025,-17.16775z"></path></g></g></svg>
283
+ <div class="uk-text-normal uk-text-bold">Heading</div>
284
+ </div>
285
+ `,
286
+ content: `<h1 class="uk-heading-small">Small</h1>`,
287
+ render: ({ model, className }) => `<div class="${className}__my-wrap"> ${model.get('label')} </div>`,
288
+ });
289
+ blockManager.add('typography-paragraph', {
290
+ category: categories.typography,
291
+ attributes: {
292
+ title: 'Insert paragraph'
293
+ },
294
+ label:
295
+ `
296
+ <div>
297
+ <svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
298
+ width="42" height="57"
299
+ viewBox="0 0 172 172"
300
+ style=" fill:#000000;"><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><path d="M0,172v-172h172v172z" fill="none"></path><g fill="#b6c6d8"><path d="M114.66667,68.08333h-21.5v53.75h-14.33333v-53.75h-21.5v-14.33333h57.33333z"></path><path d="M25.08333,28.66667h7.16667v114.66667h-7.16667zM139.75,28.66667h7.16667v114.66667h-7.16667z"></path><path d="M28.66667,25.08333h118.25v7.16667h-118.25zM28.66667,139.75h118.25v7.16667h-118.25z"></path><g><path d="M39.41667,39.41667h-21.5v-21.5h21.5zM39.41667,154.08333h-21.5v-21.5h21.5zM154.08333,39.41667h-21.5v-21.5h21.5zM154.08333,154.08333h-21.5v-21.5h21.5z"></path></g></g></g></svg>
301
+ <div class="uk-text-normal uk-text-bold">Paragraph</div>
302
+ </div>
303
+ `,
304
+ content: `
305
+ <p class="uk-text-small">
306
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.
307
+ </p>
308
+ `,
309
+ render: ({ model, className }) => `<div class="${className}__my-wrap"> ${model.get('label')} </div>`,
310
+ });
311
+ blockManager.add('typography-text-link', {
312
+ category: categories.typography,
313
+ attributes: {
314
+ title: 'Insert text link'
315
+ },
316
+ label:
317
+ `
318
+ <div>
319
+ <svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
320
+ width="42" height="57"
321
+ viewBox="0 0 172 172"
322
+ style=" fill:#000000;"><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><path d="M0,172v-172h172v172z" fill="none"></path><g fill="#b6c6d8"><path d="M43,50.16667c-19.78717,0 -35.83333,16.04617 -35.83333,35.83333c0,19.78717 16.04617,35.83333 35.83333,35.83333h28.66667v-14.33333h-28.66667c-11.87517,0 -21.5,-9.62483 -21.5,-21.5c0,-11.87517 9.62483,-21.5 21.5,-21.5h28.66667v-14.33333zM100.33333,50.16667v14.33333h28.66667c11.87517,0 21.5,9.62483 21.5,21.5c0,11.87517 -9.62483,21.5 -21.5,21.5h-28.66667v14.33333h28.66667c19.78717,0 35.83333,-16.04617 35.83333,-35.83333c0,-19.78717 -16.04617,-35.83333 -35.83333,-35.83333zM50.16667,78.83333v14.33333h71.66667v-14.33333z"></path></g></g></svg>
323
+ <div class="uk-text-normal uk-text-bold">Text Link</div>
324
+ </div>
325
+ `,
326
+ content: `<a href="#">Link</a>`,
327
+ render: ({ model, className }) => `<div class="${className}__my-wrap"> ${model.get('label')} </div>`,
328
+ });
329
+ blockManager.add('media-image', {
330
+ category: categories.media,
331
+ attributes: {
332
+ title: 'Insert image'
333
+ },
334
+ label:
335
+ `
336
+ <div>
337
+ <svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
338
+ width="42" height="57"
339
+ viewBox="0 0 172 172"
340
+ style=" fill:#000000;"><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><path d="M0,172v-172h172v172z" fill="none"></path><g fill="#b6c6d8"><path d="M28.66667,28.66667c-7.83362,0 -14.33333,6.49972 -14.33333,14.33333v86c0,7.83362 6.49972,14.33333 14.33333,14.33333h114.66667c7.83362,0 14.33333,-6.49972 14.33333,-14.33333v-86c0,-7.83362 -6.49972,-14.33333 -14.33333,-14.33333zM28.66667,43h114.66667v86h-114.66667zM71.66667,57.33333c-3.95804,0 -7.16667,3.20863 -7.16667,7.16667c0,3.95804 3.20863,7.16667 7.16667,7.16667c3.95804,0 7.16667,-3.20863 7.16667,-7.16667c0,-3.95804 -3.20863,-7.16667 -7.16667,-7.16667zM103.91667,78.83333l-25.08333,28.66667l-17.91667,-17.91667l-19.51237,25.08333h89.38737z"></path></g></g></svg>
341
+ <div class="uk-text-normal uk-text-bold">Image</div>
342
+ </div>
343
+ `,
344
+ content: `<img width="140" height="140" alt="" uk-img>`,
345
+ render: ({ model, className }) => `<div class="${className}__my-wrap"> ${model.get('label')} </div>`,
346
+ });
347
+ blockManager.add('components-banner-0', {
348
+ category: categories.components,
349
+ attributes: {
350
+ title: 'Insert banner'
351
+ },
352
+ label:
353
+ `
354
+ <div>
355
+ <svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
356
+ style="transform: rotate(45deg);"
357
+ width="42" height="57"
358
+ viewBox="0 0 172 172"
359
+ style=" fill:#000000;"><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><path d="M0,172v-172h172v172z" fill="none"></path><g fill="#b6c6d8"><path d="M96.75,10.75c-11.7998,0 -21.5,9.7002 -21.5,21.5h-43v32.25c-11.7998,0 -21.5,9.7002 -21.5,21.5c0,11.7998 9.7002,21.5 21.5,21.5v32.25h43c0,11.7998 9.7002,21.5 21.5,21.5c11.7998,0 21.5,-9.7002 21.5,-21.5h43v-43h-10.75c-6.00489,0 -10.75,-4.74511 -10.75,-10.75c0,-6.00489 4.74511,-10.75 10.75,-10.75h10.75v-43h-43c0,-11.7998 -9.7002,-21.5 -21.5,-21.5zM96.75,21.5c6.00489,0 10.75,4.74511 10.75,10.75v10.75h43v21.5c-11.7998,0 -21.5,9.7002 -21.5,21.5c0,11.7998 9.7002,21.5 21.5,21.5v21.5h-43v10.75c0,6.00489 -4.74511,10.75 -10.75,10.75c-6.00489,0 -10.75,-4.74511 -10.75,-10.75v-10.75h-43v-32.25h-10.75c-6.00489,0 -10.75,-4.74511 -10.75,-10.75c0,-6.00489 4.74511,-10.75 10.75,-10.75h10.75v-32.25h43v-10.75c0,-6.00489 4.74511,-10.75 10.75,-10.75z"></path></g></g></svg>
360
+ <div class="uk-text-normal uk-text-bold">Banner 0</div>
361
+ </div>
362
+ `,
363
+ content:
364
+ `
365
+ <div class="uk-section uk-section-default uk-height-1-1 uk-padding-remove">
366
+ <div class="uk-container uk-padding-remove uk-height-1-1">
367
+ <div class="uk-container uk-flex uk-height-1-1 uk-flex-middle">
368
+ <div class="uk-container uk-padding-remove uk-margin-remove">
369
+ <p id="i00yl" class="uk-margin-remove uk-text-small uk-text-bold">Music Application
370
+ </p>
371
+ <h3 id="ixxh" class="uk-text-bold uk-heading-large uk-margin-remove uk-width-xxlarge">Alone, it's music.
372
+ <br>​​​​​​​Togather its magic.
373
+ <br>
374
+ <br>
375
+ </h3>
376
+ <h1 class="uk-text-small uk-margin-remove">Our elite team builds web responsive app for leading companies
377
+ </h1>
378
+ </div>
379
+ </div>
380
+ </div>
381
+ <div class="uk-container uk-position-center-right uk-height-1-1 uk-width-1-2">
382
+ </div>
383
+ </div>
384
+ `,
385
+ render: ({ model, className }) => `<div class="${className}__my-wrap"> ${model.get('label')} </div>`,
386
+ });
387
+ blockManager.add('components-banner-1', {
388
+ category: categories.components,
389
+ attributes: {
390
+ title: 'Insert banner'
391
+ },
392
+ label:
393
+ `
394
+ <div>
395
+ <svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
396
+ style="transform: rotate(90deg);"
397
+ width="42" height="57"
398
+ viewBox="0 0 172 172"
399
+ style=" fill:#000000;"><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><path d="M0,172v-172h172v172z" fill="none"></path><g fill="#b6c6d8"><path d="M96.75,10.75c-11.7998,0 -21.5,9.7002 -21.5,21.5h-43v32.25c-11.7998,0 -21.5,9.7002 -21.5,21.5c0,11.7998 9.7002,21.5 21.5,21.5v32.25h43c0,11.7998 9.7002,21.5 21.5,21.5c11.7998,0 21.5,-9.7002 21.5,-21.5h43v-43h-10.75c-6.00489,0 -10.75,-4.74511 -10.75,-10.75c0,-6.00489 4.74511,-10.75 10.75,-10.75h10.75v-43h-43c0,-11.7998 -9.7002,-21.5 -21.5,-21.5zM96.75,21.5c6.00489,0 10.75,4.74511 10.75,10.75v10.75h43v21.5c-11.7998,0 -21.5,9.7002 -21.5,21.5c0,11.7998 9.7002,21.5 21.5,21.5v21.5h-43v10.75c0,6.00489 -4.74511,10.75 -10.75,10.75c-6.00489,0 -10.75,-4.74511 -10.75,-10.75v-10.75h-43v-32.25h-10.75c-6.00489,0 -10.75,-4.74511 -10.75,-10.75c0,-6.00489 4.74511,-10.75 10.75,-10.75h10.75v-32.25h43v-10.75c0,-6.00489 4.74511,-10.75 10.75,-10.75z"></path></g></g></svg>
400
+ <div class="uk-text-normal uk-text-bold">Banner 1</div>
401
+ </div>
402
+ `,
403
+ content:
404
+ `
405
+
406
+ <div class="uk-box-shadow-small uk-border-rounded" id="ilqj">
407
+ <div class="uk-grid uk-margin-remove">
408
+ <div id="im06m" class="uk-width-1-3 uk-flex uk-flex-middle uk-padding-medium">
409
+ <div class="uk-padding-remove uk-text-left uk-width-medium">
410
+ <h1 class="uk-heading-small uk-width-1-1 uk-text-bold">Recipe<br/>Contest</h1>
411
+ <p class="uk-text-small uk-width-1-1">
412
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in
413
+ </p>
414
+ <div id="i101" class="uk-width-1-1">
415
+ <a href="#" id="ihbt" class="uk-display-inline">How they work</a>
416
+ <div id="ik43h" class="uk-display-inline"></div>
417
+ </div>
418
+ </div>
419
+ </div>
420
+ <div class="uk-width-expand uk-padding-remove uk-height-large">
421
+ <div class="uk-height-1-1 uk-placeholder uk-flex uk-flex-middle uk-flex-center">[Remove and insert an image]</div>
422
+ </div>
423
+ </div>
424
+ </div>
425
+
426
+ `,
427
+ render: ({ model, className }) => `<div class="${className}__my-wrap"> ${model.get('label')} </div>`,
428
+ });
429
+ blockManager.add('components-banner-2', {
430
+ category: categories.components,
431
+ attributes: {
432
+ title: 'Insert banner'
433
+ },
434
+ label:
435
+ `
436
+ <div>
437
+ <svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
438
+ style="transform: rotate(135deg);"
439
+ width="42" height="57"
440
+ viewBox="0 0 172 172"
441
+ style=" fill:#000000;"><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><path d="M0,172v-172h172v172z" fill="none"></path><g fill="#b6c6d8"><path d="M96.75,10.75c-11.7998,0 -21.5,9.7002 -21.5,21.5h-43v32.25c-11.7998,0 -21.5,9.7002 -21.5,21.5c0,11.7998 9.7002,21.5 21.5,21.5v32.25h43c0,11.7998 9.7002,21.5 21.5,21.5c11.7998,0 21.5,-9.7002 21.5,-21.5h43v-43h-10.75c-6.00489,0 -10.75,-4.74511 -10.75,-10.75c0,-6.00489 4.74511,-10.75 10.75,-10.75h10.75v-43h-43c0,-11.7998 -9.7002,-21.5 -21.5,-21.5zM96.75,21.5c6.00489,0 10.75,4.74511 10.75,10.75v10.75h43v21.5c-11.7998,0 -21.5,9.7002 -21.5,21.5c0,11.7998 9.7002,21.5 21.5,21.5v21.5h-43v10.75c0,6.00489 -4.74511,10.75 -10.75,10.75c-6.00489,0 -10.75,-4.74511 -10.75,-10.75v-10.75h-43v-32.25h-10.75c-6.00489,0 -10.75,-4.74511 -10.75,-10.75c0,-6.00489 4.74511,-10.75 10.75,-10.75h10.75v-32.25h43v-10.75c0,-6.00489 4.74511,-10.75 10.75,-10.75z"></path></g></g></svg>
442
+ <div class="uk-text-normal uk-text-bold">Banner 2</div>
443
+ </div>
444
+ `,
445
+ content:
446
+ `
447
+ <div class="uk-container uk-margin-small uk-padding-medium uk-container-large">
448
+ <div id="ilqj" class="uk-box-shadow-small uk-border-rounded uk-padding-large">
449
+ <div id="im06m" class="uk-flex uk-flex-middle uk-padding-medium uk-width-1-1 uk-flex-center">
450
+ <div class="uk-padding-remove uk-text-left uk-text-center">
451
+ <h1 class="uk-heading-small uk-width-1-1 uk-text-bold">Recipe Contest</h1>
452
+ <p class="uk-text-small uk-width-medium uk-align-center uk-clearfix">
453
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in
454
+ </p>
455
+ <div id="i101" class="uk-width-1-1">
456
+ <a href="#" id="ihbt" class="uk-display-inline">How they work</a>
457
+ <div id="ik43h" class="uk-display-inline">
458
+ </div>
459
+ </div>
460
+ </div>
461
+ </div>
462
+ </div>
463
+ </div>
464
+ `,
465
+ render: ({ model, className }) => `<div class="${className}__my-wrap"> ${model.get('label')} </div>`,
466
+ });
467
+ blockManager.add('components-grid-0', {
468
+ category: categories.components,
469
+ attributes: {
470
+ title: 'Insert grid'
471
+ },
472
+ label:
473
+ `
474
+ <div>
475
+ <svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
476
+ style="transform: rotate(135deg);"
477
+ width="42" height="57"
478
+ viewBox="0 0 172 172"
479
+ style=" fill:#000000;"><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><path d="M0,172v-172h172v172z" fill="none"></path><g fill="#b6c6d8"><path d="M96.75,10.75c-11.7998,0 -21.5,9.7002 -21.5,21.5h-43v32.25c-11.7998,0 -21.5,9.7002 -21.5,21.5c0,11.7998 9.7002,21.5 21.5,21.5v32.25h43c0,11.7998 9.7002,21.5 21.5,21.5c11.7998,0 21.5,-9.7002 21.5,-21.5h43v-43h-10.75c-6.00489,0 -10.75,-4.74511 -10.75,-10.75c0,-6.00489 4.74511,-10.75 10.75,-10.75h10.75v-43h-43c0,-11.7998 -9.7002,-21.5 -21.5,-21.5zM96.75,21.5c6.00489,0 10.75,4.74511 10.75,10.75v10.75h43v21.5c-11.7998,0 -21.5,9.7002 -21.5,21.5c0,11.7998 9.7002,21.5 21.5,21.5v21.5h-43v10.75c0,6.00489 -4.74511,10.75 -10.75,10.75c-6.00489,0 -10.75,-4.74511 -10.75,-10.75v-10.75h-43v-32.25h-10.75c-6.00489,0 -10.75,-4.74511 -10.75,-10.75c0,-6.00489 4.74511,-10.75 10.75,-10.75h10.75v-32.25h43v-10.75c0,-6.00489 4.74511,-10.75 10.75,-10.75z"></path></g></g></svg>
480
+ <div class="uk-text-normal uk-text-bold">Grid 0</div>
481
+ </div>
482
+ `,
483
+ content:
484
+ `
485
+ <div class="uk-grid uk-margin-remove">
486
+ <ul class="uk-nav uk-nav-default uk-width-1-5">
487
+ <li class="uk-active">
488
+ <a href="#" id="imyez" class="uk-text-bold uk-text-large">Filter By</a>
489
+ </li>
490
+ <li>
491
+ <a href="#" id="ir8xk">Contest Winners</a>
492
+ </li>
493
+ <li id="ihacp">
494
+ <a href="#" id="i59ca">Featured</a>
495
+ </li>
496
+ <li id="imz84">
497
+ <a href="#" id="ik4bt">Test Kitchen-Approved</a>
498
+ </li>
499
+ </ul>
500
+ <div class="uk-width-expand uk-padding-remove">
501
+ <div class="uk-text-center uk-grid uk-margin-remove">
502
+ <div id="itdh" class="uk-width-1-3 uk-padding-remove">
503
+ <div id="idp1f" class="uk-height-small uk-border-rounded uk-box-shadow-medium uk-margin-small">
504
+ </div>
505
+ <div id="i8wvs">
506
+ <h1 id="ilthm" class="uk-text-left uk-margin-remove uk-text-small uk-text-bold">Kerala Chicken Curry</h1>
507
+ <p class="uk-text-small uk-text-left uk-margin-remove">
508
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in
509
+ </p>
510
+ </div>
511
+ <div id="ihon8" class="uk-width-1-1 uk-clearfix uk-margin-small-top">
512
+ <a href="#" class="uk-margin-remove uk-align-left uk-text-small">By Sarah Elvis</a>
513
+ </div>
514
+ </div>
515
+ <div class="uk-width-1-3 uk-padding-remove">
516
+ <div id="ibqq7" class="uk-height-small uk-border-rounded uk-box-shadow-medium uk-margin-small">
517
+ </div>
518
+ <div id="iqy5m">
519
+ <h1 class="uk-text-left uk-margin-remove uk-text-small uk-text-bold">Kerala Chicken Curry</h1>
520
+ <p class="uk-text-small uk-text-left uk-margin-remove">
521
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius
522
+ </p>
523
+ </div>
524
+ <div class="uk-width-1-1 uk-clearfix uk-margin-small-top">
525
+ <a href="#" class="uk-margin-remove uk-align-left uk-text-small">By Sarah Elvis</a>
526
+ </div>
527
+ </div>
528
+ <div id="ipjr" class="uk-width-1-3 uk-padding-remove">
529
+ <div id="i59ih" class="uk-height-small uk-border-rounded uk-box-shadow-medium uk-margin-small">
530
+ </div>
531
+ <div id="i7bxa">
532
+ <h1 class="uk-text-left uk-margin-remove uk-text-small uk-text-bold">Kerala Chicken Curry</h1>
533
+ <p class="uk-text-small uk-text-left uk-margin-remove">
534
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros
535
+ </p>
536
+ </div>
537
+ <div class="uk-width-1-1 uk-clearfix uk-margin-small-top">
538
+ <a href="#" class="uk-margin-remove uk-align-left uk-text-small">By Sarah Elvis</a>
539
+ </div>
540
+ </div>
541
+ </div>
542
+ </div>
543
+ </div>
544
+ `,
545
+ render: ({ model, className }) => `<div class="${className}__my-wrap"> ${model.get('label')} </div>`,
546
+ });
editor /blocks/linkpreview-elements.js ADDED
@@ -0,0 +1,191 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ blockManager.add('linkpreview-navbar', {
2
+ category: categories.mylinkpreview,
3
+ attributes: {
4
+ title: 'Insert navbar'
5
+ },
6
+ label:
7
+ `
8
+ <div>
9
+ <div class="uk-text-normal uk-text-bold">Navbar</div>
10
+ </div>
11
+ `,
12
+ content:
13
+ `
14
+ <div class="uk-width-1-1 uk-box-shadow-small uk-sticky">
15
+ <div class="uk-padding-remove">
16
+ <div>
17
+ <nav class="uk-navbar-container uk-height-auto uk-navbar" uk-navbar="mode: click">
18
+ <div class="nav-overlay uk-navbar-left uk-width-expand">
19
+ <ul class="uk-navbar-nav">
20
+ <li>
21
+ <a href="https://mylinkpreview.com/home">
22
+ <span>MyLinkPreview</span>
23
+ </a>
24
+ </li>
25
+ <li>
26
+ <a href="https://mylinkpreview.com/#demo-preview" class="uk-text-capitalize">Demo</a>
27
+ </li>
28
+ <li>
29
+ <a href="https://mylinkpreview.com/auth/register" class="uk-text-capitalize">Get API Key</a>
30
+ </li>
31
+ <li>
32
+ <a href="https://mylinkpreview.com/documentation/api" class="uk-text-capitalize">Documentaion</a>
33
+ </li>
34
+ <li>
35
+ <a href="https://mylinkpreview.com/#pricing-table" class="uk-text-capitalize">Pricing</a>
36
+ </li>
37
+ </ul>
38
+ </div>
39
+ <div class="nav-overlay uk-navbar-right">
40
+ <ul class="uk-navbar-nav">
41
+ <li class="uk-text-small">
42
+ <a class="uk-text-capitalize" href="https://mylinkpreview.com/auth/login">My Dashboard <span uk-icon="icon: arrow-right; ratio: 0.72" class="uk-icon"></span></a>
43
+ </li>
44
+ </ul>
45
+ </div>
46
+ </nav>
47
+ </div>
48
+ </div>
49
+ </div>
50
+ `,
51
+ render: ({ model, className }) => `<div class="${className}__my-wrap"> ${model.get('label')} </div>`,
52
+ });
53
+
54
+ blockManager.add('linkpreview-middle-banner', {
55
+ category: categories.mylinkpreview,
56
+ attributes: {
57
+ title: 'Insert middle banner'
58
+ },
59
+ label:
60
+ `
61
+ <div>
62
+ <div class="uk-text-normal uk-text-bold">Middle Banner</div>
63
+ </div>
64
+ `,
65
+ content:
66
+ `
67
+ <div class="uk-width-1-1">
68
+ <div class="uk-height-auto">
69
+ <div>
70
+ <div class="uk-width-xlarge uk-width-auto uk-padding-large uk-align-center uk-text-center">
71
+ <h1>API for link previews</h1>
72
+ <h5 class="uk-width-xlarge uk-align-center">Preview links with our REST API. We provide both raw JSON data, along with full embedding link preview capability.</h5>
73
+ <div class="uk-margin">
74
+ <a class="uk-button uk-button-default uk-visible" href="https://mylinkpreview.com/documentation/api">Documentation</a>
75
+ <a class="uk-button uk-button-primary" href="https://mylinkpreview.com/auth/register">Get API Key</a>
76
+ </div>
77
+ </div>
78
+ </div>
79
+ </div>
80
+ </div>
81
+ `,
82
+ render: ({ model, className }) => `<div class="${className}__my-wrap"> ${model.get('label')} </div>`,
83
+ });
84
+
85
+ blockManager.add('linkpreview-col-1-2', {
86
+ category: categories.mylinkpreview,
87
+ attributes: {
88
+ title: 'Insert columns 1-2'
89
+ },
90
+ label:
91
+ `
92
+ <div>
93
+ <div class="uk-text-normal uk-text-bold">Column 1-2</div>
94
+ </div>
95
+ `,
96
+ content:
97
+ `
98
+ <div class="uk-height-auto uk-padding-large">
99
+ <div class="uk-child-width-expand uk-flex uk-flex-middle uk-grid">
100
+ <div class="uk-text-left uk-first-column">
101
+ <h3 class="uk-margin-small-top">Request an API key</h3>
102
+ <p>
103
+ Simply click "Get API Key" to make requests to our api. To read more, see our <a href="https://mylinkpreview.com/documentation/api">Documentation</a> for use of the api key.
104
+ </p>
105
+ </div>
106
+ <div>
107
+ <div class="uk-card uk-card-default uk-scrollspy-inview uk-animation-fade" style="border: 1px solid rgb(229, 229, 229);">
108
+ <div class="uk-container uk-padding-remove">
109
+ <div>
110
+ <nav class="uk-navbar-container uk-navbar" uk-navbar="">
111
+ <div class="uk-navbar-left">
112
+ <ul class="uk-navbar-nav">
113
+ <li>
114
+ <a>
115
+ <span>MyLinkPreview</span>
116
+ </a>
117
+ </li>
118
+ <li>
119
+ <a class="uk-text-small" href="https://mylinkpreview.com/#">Demo</a>
120
+ </li>
121
+ <li class="uk-active">
122
+ <a class="uk-text-small" href="https://mylinkpreview.com/auth/register">Get API Key</a>
123
+ </li>
124
+ <li>
125
+ <a>
126
+ <span uk-icon="more" class="uk-icon"></span>
127
+ </a>
128
+ </li>
129
+ </ul>
130
+ </div>
131
+ </nav>
132
+ </div>
133
+ </div>
134
+ </div>
135
+ </div>
136
+ </div>
137
+ </div>
138
+ `,
139
+ render: ({ model, className }) => `<div class="${className}__my-wrap"> ${model.get('label')} </div>`,
140
+ });
141
+
142
+ blockManager.add('linkpreview-features', {
143
+ category: categories.mylinkpreview,
144
+ attributes: {
145
+ title: 'Insert features'
146
+ },
147
+ label:
148
+ `
149
+ <div>
150
+ <div class="uk-text-normal uk-text-bold">Features</div>
151
+ </div>
152
+ `,
153
+ content:
154
+ `
155
+ <div class="uk-padding-large uk-box-shadow-small">
156
+ <div class="uk-text-center uk-width-xlarge uk-align-center">
157
+ <p>Major features we provide with our service.</p>
158
+ </div>
159
+ <div class="uk-grid-divider uk-padding-small uk-text-center uk-grid-small uk-grid-match uk-child-width-1-3 uk-grid">
160
+ <div class="uk-first-column uk-scrollspy-inview uk-animation-fade" style="">
161
+ <h4 class="uk-margin-remove">Image</h4>
162
+ <span>Thumbnail image from the url</span>
163
+ </div>
164
+ <div class="uk-scrollspy-inview uk-animation-fade" style="">
165
+ <h4 class="uk-margin-remove">Favicon</h4>
166
+ <span>Website's favicon</span>
167
+ </div>
168
+ <div class="uk-scrollspy-inview uk-animation-fade" style="">
169
+ <h4 class="uk-margin-remove">Embedding</h4>
170
+ <span>Responsive link preview on your wesbsite</span>
171
+ </div>
172
+ </div>
173
+ <hr>
174
+ <div class="uk-grid-divider uk-padding-small uk-text-center uk-grid-small uk-grid-match uk-child-width-1-3 uk-grid" uk-grid="">
175
+ <div class="uk-first-column uk-scrollspy-inview uk-animation-fade" style="">
176
+ <h4 class="uk-margin-remove">Title</h4>
177
+ <span>Obtain page title</span>
178
+ </div>
179
+ <div class="uk-scrollspy-inview uk-animation-fade" style="">
180
+ <h4 class="uk-margin-remove">Description</h4>
181
+ <span>Obtain page description</span>
182
+ </div>
183
+ <div class="uk-scrollspy-inview uk-animation-fade" style="">
184
+ <h4 class="uk-margin-remove">Is Safe <span class="uk-label">Beta</span></h4>
185
+ <span>URL risk checker</span>
186
+ </div>
187
+ </div>
188
+ </div>
189
+ `,
190
+ render: ({ model, className }) => `<div class="${className}__my-wrap"> ${model.get('label')} </div>`,
191
+ });
editor /blocks/pages.js ADDED
@@ -0,0 +1,262 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ blockManager.add('layout-page-0', {
2
+ category: categories.pages,
3
+ attributes: {
4
+ title: 'Insert page'
5
+ },
6
+ label:
7
+ `
8
+ <div>
9
+ <svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
10
+ width="42" height="57"
11
+ viewBox="0 0 172 172"
12
+ style=" fill:#000000;"><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><path d="M0,172v-172h172v172z" fill="none"></path><g fill="#b6c6d8"><path d="M24.08,6.88v158.24h123.84v-114.9175l-0.9675,-1.075l-41.28,-41.28l-1.075,-0.9675zM30.96,13.76h68.8v27.52h-48.16v6.88h48.16v6.88h41.28v103.2h-110.08zM106.64,18.705l29.455,29.455h-29.455zM51.6,75.68v6.88h10.32v-6.88zM75.68,75.68v6.88h44.72v-6.88zM51.6,96.32v6.88h10.32v-6.88zM75.68,96.32v6.88h44.72v-6.88zM51.6,116.96v6.88h10.32v-6.88zM75.68,116.96v6.88h44.72v-6.88z"></path></g></g></svg>
13
+ <div class="uk-text-normal uk-text-bold">Home 0</div>
14
+ </div>
15
+ `,
16
+ content:
17
+ `
18
+ <div class="uk-section uk-section-default uk-padding-small uk-position-relative">
19
+ <div class="uk-container uk-margin-small uk-padding-medium uk-container-large">
20
+ <div id="ilqj" class="uk-box-shadow-small uk-border-rounded">
21
+ <div class="uk-grid uk-margin-remove">
22
+ <div id="im06m" class="uk-width-1-3 uk-flex uk-flex-middle uk-padding-medium">
23
+ <div class="uk-padding-small uk-text-left uk-width-medium">
24
+ <h1 class="uk-heading-small uk-width-1-1 uk-text-bold">Recipe
25
+ <br/>Contest
26
+ </h1>
27
+ <p class="uk-text-small uk-width-1-1">
28
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in
29
+ </p>
30
+ <div id="i101" class="uk-width-1-1">
31
+ <a href="#" id="ihbt" class="uk-display-inline">How they work</a>
32
+ <div id="ik43h" class="uk-display-inline">
33
+ </div>
34
+ </div>
35
+ </div>
36
+ </div>
37
+ <div class="uk-width-expand uk-padding-small uk-height-large">
38
+ <div class="uk-height-1-1 uk-placeholder uk-flex uk-flex-middle uk-flex-center">[Remove and insert an image]
39
+ </div>
40
+ </div>
41
+ </div>
42
+ </div>
43
+ <div id="iwwqm" class="uk-margin-medium-top">
44
+ <div class="uk-grid uk-margin-remove">
45
+ <ul class="uk-nav uk-nav-default uk-width-1-5 uk-padding-small">
46
+ <li class="uk-active">
47
+ <a href="#" id="imyez" class="uk-text-bold uk-text-large">Filter By</a>
48
+ </li>
49
+ <li>
50
+ <a href="#" id="ir8xk">Contest Winners</a>
51
+ </li>
52
+ <li id="ihacp">
53
+ <a href="#" id="i59ca">Featured</a>
54
+ </li>
55
+ <li id="imz84">
56
+ <a href="#" id="ik4bt">Test Kitchen-Approved</a>
57
+ </li>
58
+ </ul>
59
+ <div class="uk-width-expand">
60
+ <div class="uk-text-center uk-grid">
61
+ <div id="itdh" class="uk-width-1-3 uk-padding-small">
62
+ <div id="idp1f" class="uk-height-small uk-border-rounded uk-box-shadow-medium uk-margin-small">
63
+ </div>
64
+ <div id="i8wvs">
65
+ <h1 id="ilthm" class="uk-text-left uk-margin-remove uk-text-small uk-text-bold">Kerala Chicken Curry
66
+ </h1>
67
+ <p class="uk-text-small uk-text-left uk-margin-remove">
68
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in
69
+ </p>
70
+ </div>
71
+ <div id="ihon8" class="uk-width-1-1 uk-clearfix uk-margin-small-remove">
72
+ <a href="#" class="uk-margin-remove uk-align-left uk-text-small">By Sarah Elvis</a>
73
+ </div>
74
+ </div>
75
+ <div class="uk-width-1-3 uk-padding-small">
76
+ <div id="ibqq7" class="uk-height-small uk-border-rounded uk-box-shadow-medium uk-margin-small">
77
+ </div>
78
+ <div id="iqy5m">
79
+ <h1 class="uk-text-left uk-margin-remove uk-text-small uk-text-bold">Kerala Chicken Curry
80
+ </h1>
81
+ <p class="uk-text-small uk-text-left uk-margin-remove">
82
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius
83
+ </p>
84
+ </div>
85
+ <div class="uk-width-1-1 uk-clearfix uk-margin-small-remove">
86
+ <a href="#" class="uk-margin-remove uk-align-left uk-text-small">By Sarah Elvis</a>
87
+ </div>
88
+ </div>
89
+ <div id="ipjr" class="uk-width-1-3 uk-padding-small">
90
+ <div id="i59ih" class="uk-height-small uk-border-rounded uk-box-shadow-medium uk-margin-small">
91
+ </div>
92
+ <div id="i7bxa">
93
+ <h1 class="uk-text-left uk-margin-remove uk-text-small uk-text-bold">Kerala Chicken Curry
94
+ </h1>
95
+ <p class="uk-text-small uk-text-left uk-margin-remove">
96
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros
97
+ </p>
98
+ </div>
99
+ <div class="uk-width-1-1 uk-clearfix uk-margin-small-remove">
100
+ <a href="#" class="uk-margin-remove uk-align-left uk-text-small">By Sarah Elvis</a>
101
+ </div>
102
+ </div>
103
+ </div>
104
+ </div>
105
+ </div>
106
+ </div>
107
+ <hr/>
108
+ <div class="uk-margin-small-remove">
109
+ <div id="isuyk" class="uk-padding-small">
110
+ <h1 class="uk-text-bold uk-text-large uk-margin-remove">Featured
111
+ </h1>
112
+ <p class="uk-margin-remove">Some of our qualified listings.
113
+ </p>
114
+ </div>
115
+ <div class="uk-grid uk-margin-remove">
116
+ <div class="uk-width-expand">
117
+ <div class="uk-text-center uk-grid">
118
+ <div class="uk-padding-small uk-width-1-2">
119
+ <div class="uk-height-small uk-border-rounded uk-box-shadow-medium uk-margin-small">
120
+ </div>
121
+ <div>
122
+ <h1 class="uk-text-left uk-margin-remove uk-text-small uk-text-bold">Kerala Chicken Curry
123
+ </h1>
124
+ <p class="uk-text-small uk-text-left uk-margin-remove">
125
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim inLorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim inLorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in
126
+ </p>
127
+ </div>
128
+ <div class="uk-width-1-1 uk-clearfix uk-margin-small-remove">
129
+ <a href="#" class="uk-margin-remove uk-align-left uk-text-small">By Sarah Elvis</a>
130
+ </div>
131
+ </div>
132
+ <div class="uk-padding-small uk-width-1-2">
133
+ <div class="uk-height-small uk-border-rounded uk-box-shadow-medium uk-margin-small">
134
+ </div>
135
+ <div>
136
+ <h1 class="uk-text-left uk-margin-remove uk-text-small uk-text-bold">Kerala Chicken Curry
137
+ </h1>
138
+ <p class="uk-text-small uk-text-left uk-margin-remove">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim inLorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim inLorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros
139
+ </p>
140
+ </div>
141
+ <div class="uk-width-1-1 uk-clearfix uk-margin-small-remove">
142
+ <a href="#" class="uk-margin-remove uk-align-left uk-text-small">By Sarah Elvis</a>
143
+ </div>
144
+ </div>
145
+ </div>
146
+ </div>
147
+ </div>
148
+ </div>
149
+ <div class="uk-grid uk-margin-remove" id="i49l79">
150
+ <div class="uk-padding-large uk-width-1-2">
151
+ <div class="uk-flex uk-flex-middle uk-padding-medium uk-width-1-1 uk-flex-center">
152
+ <div class="uk-padding-small uk-text-left uk-text-center">
153
+ <h1 class="uk-heading-small uk-width-1-1 uk-text-bold">Recipes
154
+ </h1>
155
+ <p class="uk-text-small uk-width-medium uk-align-center uk-clearfix">
156
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in
157
+ </p>
158
+ <div class="uk-width-1-1">
159
+ <a href="#" class="uk-display-inline">Show More Recipes</a>
160
+ <div class="uk-display-inline">
161
+ </div>
162
+ </div>
163
+ </div>
164
+ </div>
165
+ </div>
166
+ <div class="uk-padding-large uk-width-1-2">
167
+ <div class="uk-flex uk-flex-middle uk-padding-medium uk-width-1-1 uk-flex-center">
168
+ <div class="uk-padding-small uk-text-left uk-text-center">
169
+ <h1 class="uk-heading-small uk-width-1-1 uk-text-bold">Books
170
+ </h1>
171
+ <p class="uk-text-small uk-width-medium uk-align-center uk-clearfix">
172
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in
173
+ </p>
174
+ <div class="uk-width-1-1">
175
+ <a href="#" class="uk-display-inline">Show More Books</a>
176
+ <div class="uk-display-inline">
177
+ </div>
178
+ </div>
179
+ </div>
180
+ </div>
181
+ </div>
182
+ </div>
183
+ <hr/>
184
+ <div class="uk-margin-small-remove">
185
+ <div id="iqljz" class="uk-padding-small">
186
+ <h1 id="i53ze" class="uk-text-bold uk-text-large uk-margin-remove">Restaurants Near You
187
+ </h1>
188
+ <p id="iyp9dj" class="uk-margin-remove">Very delicios places around your neighbourhood.
189
+ </p>
190
+ </div>
191
+ <div class="uk-grid uk-margin-remove">
192
+ <div class="uk-width-expand">
193
+ <div class="uk-text-center uk-grid">
194
+ <div class="uk-width-1-3 uk-padding-small">
195
+ <div class="uk-height-small uk-border-rounded uk-box-shadow-medium uk-margin-small">
196
+ </div>
197
+ <div>
198
+ <h1 class="uk-text-left uk-margin-remove uk-text-small uk-text-bold">Kerala Chicken Curry
199
+ </h1>
200
+ <p class="uk-text-small uk-text-left uk-margin-remove">
201
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in
202
+ </p>
203
+ </div>
204
+ <div class="uk-width-1-1 uk-clearfix uk-margin-small-remove">
205
+ <a href="#" class="uk-margin-remove uk-align-left uk-text-small">By Sarah Elvis</a>
206
+ </div>
207
+ </div>
208
+ <div class="uk-width-1-3 uk-padding-small">
209
+ <div class="uk-height-small uk-border-rounded uk-box-shadow-medium uk-margin-small">
210
+ </div>
211
+ <div>
212
+ <h1 class="uk-text-left uk-margin-remove uk-text-small uk-text-bold">Kerala Chicken Curry
213
+ </h1>
214
+ <p class="uk-text-small uk-text-left uk-margin-remove">
215
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius
216
+ </p>
217
+ </div>
218
+ <div class="uk-width-1-1 uk-clearfix uk-margin-small-remove">
219
+ <a href="#" class="uk-margin-remove uk-align-left uk-text-small">By Sarah Elvis</a>
220
+ </div>
221
+ </div>
222
+ <div class="uk-width-1-3 uk-padding-small">
223
+ <div class="uk-height-small uk-border-rounded uk-box-shadow-medium uk-margin-small">
224
+ </div>
225
+ <div>
226
+ <h1 class="uk-text-left uk-margin-remove uk-text-small uk-text-bold">Kerala Chicken Curry
227
+ </h1>
228
+ <p class="uk-text-small uk-text-left uk-margin-remove">
229
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros
230
+ </p>
231
+ </div>
232
+ <div class="uk-width-1-1 uk-clearfix uk-margin-small-remove">
233
+ <a href="#" class="uk-margin-remove uk-align-left uk-text-small">By Sarah Elvis</a>
234
+ </div>
235
+ </div>
236
+ </div>
237
+ </div>
238
+ </div>
239
+ </div>
240
+ <div class="uk-container uk-margin-small uk-padding-medium uk-container-large uk-margin-small-remove">
241
+ <div id="ilqj-2" class="uk-box-shadow-small uk-border-rounded uk-padding-large">
242
+ <div id="im06m-2" class="uk-flex uk-flex-middle uk-padding-medium uk-width-1-1 uk-flex-center">
243
+ <div class="uk-padding-small uk-text-left uk-text-center">
244
+ <h1 class="uk-heading-small uk-width-1-1 uk-text-bold">Recipe Contest
245
+ </h1>
246
+ <p class="uk-text-small uk-width-medium uk-align-center uk-clearfix">
247
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in
248
+ </p>
249
+ <div id="i101-2" class="uk-width-1-1">
250
+ <a href="#" id="ihbt-2" class="uk-display-inline">How they work</a>
251
+ <div id="ik43h-2" class="uk-display-inline">
252
+ </div>
253
+ </div>
254
+ </div>
255
+ </div>
256
+ </div>
257
+ </div>
258
+ </div>
259
+ </div>
260
+ `,
261
+ render: ({ model, className }) => `<div class="${className}__my-wrap"> ${model.get('label')} </div>`,
262
+ });
editor /blocks/uikit-elements.js ADDED
@@ -0,0 +1,394 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ blockManager.add('uikit-accordion', {
2
+ category: categories.uikit,
3
+ attributes: {
4
+ title: 'Insert accordion'
5
+ },
6
+ label:
7
+ `
8
+ <div>
9
+ <svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
10
+ width="48" height="48"
11
+ viewBox="0 0 172 172"
12
+ style=" fill:#000000;"><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><path d="M0,172v-172h172v172z" fill="none"></path><g id="original-icon" fill="#ecf0f1"><path d="M50.16667,78.83333h107.5v14.33333h-107.5zM50.16667,35.83333h107.5v14.33333h-107.5zM50.16667,121.83333h107.5v14.33333h-107.5zM21.5,75.25c-5.93706,0 -10.75,4.81294 -10.75,10.75c0,5.93706 4.81294,10.75 10.75,10.75c5.93706,0 10.75,-4.81294 10.75,-10.75c0,-5.93706 -4.81294,-10.75 -10.75,-10.75zM21.5,118.25c-5.93706,0 -10.75,4.81294 -10.75,10.75c0,5.93706 4.81294,10.75 10.75,10.75c5.93706,0 10.75,-4.81294 10.75,-10.75c0,-5.93706 -4.81294,-10.75 -10.75,-10.75zM21.5,32.25c-5.93706,0 -10.75,4.81294 -10.75,10.75c0,5.93706 4.81294,10.75 10.75,10.75c5.93706,0 10.75,-4.81294 10.75,-10.75c0,-5.93706 -4.81294,-10.75 -10.75,-10.75z"></path></g></g></svg>
13
+ <div class="uk-text-normal uk-text-bold">Accordion</div>
14
+ </div>
15
+ `,
16
+ content:
17
+ `
18
+ <ul uk-accordion>
19
+ <li class="uk-open">
20
+ <a class="uk-accordion-title" href="#">Item 1</a>
21
+ <div class="uk-accordion-content">
22
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
23
+ </div>
24
+ </li>
25
+ <li>
26
+ <a class="uk-accordion-title" href="#">Item 2</a>
27
+ <div class="uk-accordion-content">
28
+ <p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor reprehenderit.</p>
29
+ </div>
30
+ </li>
31
+ <li>
32
+ <a class="uk-accordion-title" href="#">Item 3</a>
33
+ <div class="uk-accordion-content">
34
+ <p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat proident.</p>
35
+ </div>
36
+ </li>
37
+ </ul>
38
+ `,
39
+ render: ({ model, className }) => `<div class="${className}__my-wrap"> ${model.get('label')} </div>`,
40
+ });
41
+
42
+ blockManager.add('uikit-button', {
43
+ category: categories.uikit,
44
+ attributes: {
45
+ title: 'Insert button'
46
+ },
47
+ label:
48
+ `
49
+ <div>
50
+ <svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
51
+ width="48" height="48"
52
+ viewBox="0 0 172 172"
53
+ style=" fill:#000000;"><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><path d="M0,172v-172h172v172z" fill="none"></path><g fill="#ECF0F1"><path d="M14.33333,50.16667c-7.83362,0 -14.33333,6.49972 -14.33333,14.33333v43c0,7.83362 6.49972,14.33333 14.33333,14.33333h143.33333c7.83362,0 14.33333,-6.49972 14.33333,-14.33333v-43c0,-7.83362 -6.49972,-14.33333 -14.33333,-14.33333zM14.33333,64.5h143.33333v43h-143.33333zM50.16667,78.83333v14.33333h14.33333v-14.33333zM78.83333,78.83333v14.33333h14.33333v-14.33333zM107.5,78.83333v14.33333h14.33333v-14.33333z"></path></g></g></svg>
54
+ <div class="uk-text-normal uk-text-bold">Button</div>
55
+ </div>
56
+ `,
57
+ content: `<button class="uk-button uk-button-default">Default</button>`,
58
+ render: ({ model, className }) => `<div class="${className}__my-wrap"> ${model.get('label')} </div>`,
59
+ });
60
+
61
+ blockManager.add('uikit-card', {
62
+ category: categories.uikit,
63
+ attributes: {
64
+ title: 'Insert card'
65
+ },
66
+ label:
67
+ `
68
+ <div>
69
+ <svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
70
+ width="48" height="48"
71
+ viewBox="0 0 172 172"
72
+ style=" fill:#000000;"><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><path d="M0,172v-172h172v172z" fill="none"></path><g fill="#ecf0f1"><path d="M24.08,30.96c-9.46,0 -17.2,7.74 -17.2,17.2v75.68c0,9.46 7.74,17.2 17.2,17.2h123.84c9.46,0 17.2,-7.74 17.2,-17.2v-75.68c0,-9.46 -7.74,-17.2 -17.2,-17.2zM24.08,37.84h123.84c5.73781,0 10.32,4.58219 10.32,10.32v6.88h-144.48v-6.88c0,-5.73781 4.58219,-10.32 10.32,-10.32zM13.76,72.24h144.48v51.6c0,5.73781 -4.58219,10.32 -10.32,10.32h-123.84c-5.73781,0 -10.32,-4.58219 -10.32,-10.32zM30.96,82.56v6.88h55.04v-6.88z"></path></g></g></svg>
73
+ <div class="uk-text-normal uk-text-bold">Card</div>
74
+ </div>
75
+ `,
76
+ content:
77
+ `
78
+ <div class="uk-card uk-card-default uk-card-body uk-width-1-2">
79
+ <h3 class="uk-card-title">Default</h3>
80
+ <p>Lorem ipsum <a href="#">dolor</a> sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
81
+ </div>
82
+ `,
83
+ render: ({ model, className }) => `<div class="${className}__my-wrap"> ${model.get('label')} </div>`,
84
+ });
85
+
86
+ blockManager.add('uikit-column', {
87
+ category: categories.uikit,
88
+ attributes: {
89
+ title: 'Insert column'
90
+ },
91
+ label:
92
+ `
93
+ <div>
94
+ <svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
95
+ width="48" height="48"
96
+ viewBox="0 0 172 172"
97
+ style=" fill:#000000;"><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><path d="M0,172v-172h172v172z" fill="none"></path><g fill="#ECF0F1"><path d="M43,14.33333c-7.83362,0 -14.33333,6.49972 -14.33333,14.33333v114.66667c0,7.83362 6.49972,14.33333 14.33333,14.33333h28.66667c7.83362,0 14.33333,-6.49972 14.33333,-14.33333v-114.66667c0,-7.83362 -6.49972,-14.33333 -14.33333,-14.33333zM100.33333,14.33333v14.33333h28.66667v28.66667h-28.66667v14.33333h28.66667v28.66667h-28.66667v14.33333h28.66667v28.66667h-28.66667v14.33333h28.66667c7.83362,0 14.33333,-6.49972 14.33333,-14.33333v-114.66667c0,-7.83362 -6.49972,-14.33333 -14.33333,-14.33333zM43,28.66667h28.66667v28.66667h-28.66667zM43,71.66667h28.66667v28.66667h-28.66667zM43,114.66667h28.66667v28.66667h-28.66667z"></path></g></g></svg>
98
+ <div class="uk-text-normal uk-text-bold">Column 1-2</div>
99
+ </div>
100
+ `,
101
+ content:
102
+ `
103
+ <div class="uk-column-1-2">
104
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.</p>
105
+
106
+ <p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
107
+
108
+ <p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore.</p>
109
+ </div>
110
+ `,
111
+ render: ({ model, className }) => `<div class="${className}__my-wrap"> ${model.get('label')} </div>`,
112
+ });
113
+
114
+ blockManager.add('uikit-container', {
115
+ category: categories.uikit,
116
+ attributes: {
117
+ title: 'Insert container'
118
+ },
119
+ label:
120
+ `
121
+ <div>
122
+ <svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
123
+ width="48" height="48"
124
+ viewBox="0 0 172 172"
125
+ style=" fill:#000000;"><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><path d="M0,172v-172h172v172z" fill="none"></path><g fill="#ECF0F1"><path d="M48.375,21.5c-14.78109,0 -26.875,12.09391 -26.875,26.875v75.25c0,14.78109 12.09391,26.875 26.875,26.875h75.25c14.78109,0 26.875,-12.09391 26.875,-26.875v-75.25c0,-14.78109 -12.09391,-26.875 -26.875,-26.875zM48.375,32.25h75.25c8.97641,0 16.125,7.14859 16.125,16.125v75.25c0,8.97641 -7.14859,16.125 -16.125,16.125h-75.25c-8.97641,0 -16.125,-7.14859 -16.125,-16.125v-75.25c0,-8.97641 7.14859,-16.125 16.125,-16.125zM69.875,53.75c-8.84221,0 -16.125,7.28279 -16.125,16.125v32.25c0,8.84221 7.28279,16.125 16.125,16.125h32.25c8.84221,0 16.125,-7.28279 16.125,-16.125v-32.25c0,-8.84221 -7.28279,-16.125 -16.125,-16.125zM69.875,64.5h32.25c3.02579,0 5.375,2.34921 5.375,5.375v32.25c0,3.02579 -2.34921,5.375 -5.375,5.375h-32.25c-3.02579,0 -5.375,-2.34921 -5.375,-5.375v-32.25c0,-3.02579 2.34921,-5.375 5.375,-5.375z"></path></g></g></svg>
126
+ <div class="uk-text-normal uk-text-bold">Container</div>
127
+ </div>
128
+ `,
129
+ content:
130
+ `
131
+ <div class="uk-container">
132
+ <p>A simple container</p>
133
+ </div>
134
+ `,
135
+ render: ({ model, className }) => `<div class="${className}__my-wrap"> ${model.get('label')} </div>`,
136
+ });
137
+
138
+ blockManager.add('uikit-grid', {
139
+ category: categories.uikit,
140
+ attributes: {
141
+ title: 'Insert grid'
142
+ },
143
+ label:
144
+ `
145
+ <div>
146
+ <svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
147
+ width="48" height="48"
148
+ viewBox="0 0 172 172"
149
+ style=" fill:#000000;"><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><path d="M0,172v-172h172v172z" fill="none"></path><g fill="#ecf0f1"><path d="M16.125,32.25v107.5h139.75v-107.5zM26.875,43h21.5v21.5h-21.5zM59.125,43h21.5v21.5h-21.5zM91.375,43h21.5v21.5h-21.5zM123.625,43h21.5v21.5h-21.5zM26.875,75.25h21.5v21.5h-21.5zM59.125,75.25h21.5v21.5h-21.5zM91.375,75.25h21.5v21.5h-21.5zM123.625,75.25h21.5v21.5h-21.5zM26.875,107.5h21.5v21.5h-21.5zM59.125,107.5h21.5v21.5h-21.5zM91.375,107.5h21.5v21.5h-21.5zM123.625,107.5h21.5v21.5h-21.5z"></path></g></g></svg>
150
+ <div class="uk-text-normal uk-text-bold">Grid</div>
151
+ </div>
152
+ `,
153
+ content:
154
+ `
155
+ <div class="uk-text-center uk-grid">
156
+ <div class="uk-width-auto">
157
+ <div class="uk-card uk-card-default uk-card-body">Auto</div>
158
+ </div>
159
+ <div class="uk-width-1-3">
160
+ <div class="uk-card uk-card-default uk-card-body">1-3</div>
161
+ </div>
162
+ <div class="uk-width-expand">
163
+ <div class="uk-card uk-card-default uk-card-body">Expand</div>
164
+ </div>
165
+ </div>
166
+ `,
167
+ render: ({ model, className }) => `<div class="${className}__my-wrap"> ${model.get('label')} </div>`,
168
+ });
169
+
170
+ blockManager.add('uikit-heading', {
171
+ category: categories.uikit,
172
+ attributes: {
173
+ title: 'Insert heading'
174
+ },
175
+ label:
176
+ `
177
+ <div>
178
+ <svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
179
+ width="48" height="48"
180
+ viewBox="0 0 172 172"
181
+ style=" fill:#000000;"><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><path d="M0,172v-172h172v172z" fill="none"></path><g fill="#ecf0f1"><path d="M78.83333,28.66667v43h-43v-43h-21.5v114.66667h21.5v-50.16667h43v50.16667h21.5v-114.66667zM155.20133,28.66667l-40.53467,15.1575v18.8125l21.5,-6.84417v87.54083h21.5v-114.66667z"></path></g></g></svg>
182
+ <div class="uk-text-normal uk-text-bold">Heading</div>
183
+ </div>
184
+ `,
185
+ content:
186
+ `
187
+ <h1 class="uk-heading-small">Small</h1>
188
+ `,
189
+ render: ({ model, className }) => `<div class="${className}__my-wrap"> ${model.get('label')} </div>`,
190
+ });
191
+
192
+ blockManager.add('uikit-link', {
193
+ category: categories.uikit,
194
+ attributes: {
195
+ title: 'Insert link'
196
+ },
197
+ label:
198
+ `
199
+ <div>
200
+ <svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
201
+ width="48" height="48"
202
+ viewBox="0 0 172 172"
203
+ style=" fill:#000000;"><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><path d="M0,172v-172h172v172z" fill="none"></path><g fill="#ecf0f1"><path d="M50.16667,78.83333h71.66667v14.33333h-71.66667z"></path><path d="M129,50.16667c-5.10267,0 -23.564,0 -28.66667,0v14.33333c5.53267,0 23.134,0 28.66667,0c11.87517,0 21.5,9.62483 21.5,21.5c0,11.87517 -9.62483,21.5 -21.5,21.5c-5.53267,0 -23.134,0 -28.66667,0v14.33333c5.10267,0 23.564,0 28.66667,0c19.78717,0 35.83333,-16.04617 35.83333,-35.83333c0,-19.78717 -16.04617,-35.83333 -35.83333,-35.83333zM43,121.83333c5.10267,0 23.564,0 28.66667,0v-14.33333c-5.53267,0 -23.134,0 -28.66667,0c-11.87517,0 -21.5,-9.62483 -21.5,-21.5c0,-11.87517 9.62483,-21.5 21.5,-21.5c5.53267,0 23.134,0 28.66667,0v-14.33333c-5.10267,0 -23.564,0 -28.66667,0c-19.78717,0 -35.83333,16.04617 -35.83333,35.83333c0,19.78717 16.04617,35.83333 35.83333,35.83333z"></path></g></g></svg>
204
+ <div class="uk-text-normal uk-text-bold">Link</div>
205
+ </div>
206
+ `,
207
+ content:
208
+ `
209
+ <a class="uk-link-heading" href="#">Heading</a>
210
+ `,
211
+ render: ({ model, className }) => `<div class="${className}__my-wrap"> ${model.get('label')} </div>`,
212
+ });
213
+
214
+ blockManager.add('uikit-nav', {
215
+ category: categories.uikit,
216
+ attributes: {
217
+ title: 'Insert nav'
218
+ },
219
+ label:
220
+ `
221
+ <div>
222
+ <svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
223
+ width="48" height="48"
224
+ viewBox="0 0 172 172"
225
+ style=" fill:#000000;"><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><path d="M0,172v-172h172v172z" fill="none"></path><g fill="#ecf0f1"><path d="M21.5,35.83333c-2.58456,-0.03655 -4.98858,1.32136 -6.29153,3.55376c-1.30295,2.2324 -1.30295,4.99342 0,7.22582c1.30295,2.2324 3.70697,3.59031 6.29153,3.55376h129c2.58456,0.03655 4.98858,-1.32136 6.29153,-3.55376c1.30295,-2.2324 1.30295,-4.99342 0,-7.22582c-1.30295,-2.2324 -3.70697,-3.59031 -6.29153,-3.55376zM21.5,78.83333c-2.58456,-0.03655 -4.98858,1.32136 -6.29153,3.55376c-1.30295,2.2324 -1.30295,4.99342 0,7.22582c1.30295,2.2324 3.70697,3.59031 6.29153,3.55376h129c2.58456,0.03655 4.98858,-1.32136 6.29153,-3.55376c1.30295,-2.2324 1.30295,-4.99342 0,-7.22582c-1.30295,-2.2324 -3.70697,-3.59031 -6.29153,-3.55376zM21.5,121.83333c-2.58456,-0.03655 -4.98858,1.32136 -6.29153,3.55376c-1.30295,2.2324 -1.30295,4.99342 0,7.22582c1.30295,2.2324 3.70697,3.59031 6.29153,3.55376h129c2.58456,0.03655 4.98858,-1.32136 6.29153,-3.55376c1.30295,-2.2324 1.30295,-4.99342 0,-7.22582c-1.30295,-2.2324 -3.70697,-3.59031 -6.29153,-3.55376z"></path></g></g></svg>
226
+ <div class="uk-text-normal uk-text-bold">Nav</div>
227
+ </div>
228
+ `,
229
+ content:
230
+ `
231
+ <nav class="uk-navbar-container" uk-navbar>
232
+ <div class="uk-navbar-left">
233
+
234
+ <ul class="uk-navbar-nav">
235
+ <li class="uk-active"><a href="#">Active</a></li>
236
+ <li>
237
+ <a href="#">Parent</a>
238
+ <div class="uk-navbar-dropdown">
239
+ <ul class="uk-nav uk-navbar-dropdown-nav">
240
+ <li class="uk-active"><a href="#">Active</a></li>
241
+ <li><a href="#">Item</a></li>
242
+ <li class="uk-nav-header">Header</li>
243
+ <li><a href="#">Item</a></li>
244
+ <li><a href="#">Item</a></li>
245
+ <li class="uk-nav-divider"></li>
246
+ <li><a href="#">Item</a></li>
247
+ </ul>
248
+ </div>
249
+ </li>
250
+ <li><a href="#">Item</a></li>
251
+ </ul>
252
+
253
+ </div>
254
+ <div class="uk-navbar-right">
255
+
256
+ <ul class="uk-navbar-nav">
257
+ <li>
258
+ <a href="#">Parent</a>
259
+ <div class="uk-navbar-dropdown">
260
+ <ul class="uk-nav uk-navbar-dropdown-nav">
261
+ <li class="uk-active"><a href="#">Active</a></li>
262
+ <li><a href="#">Item</a></li>
263
+ <li class="uk-nav-header">Header</li>
264
+ <li><a href="#">Item</a></li>
265
+ <li><a href="#">Item</a></li>
266
+ <li class="uk-nav-divider"></li>
267
+ <li><a href="#">Item</a></li>
268
+ </ul>
269
+ </div>
270
+ </li>
271
+ </ul>
272
+ </div>
273
+ </nav>
274
+ `,
275
+ render: ({ model, className }) => `<div class="${className}__my-wrap"> ${model.get('label')} </div>`,
276
+ });
277
+
278
+ blockManager.add('uikit-section', {
279
+ category: categories.uikit,
280
+ attributes: {
281
+ title: 'Insert section'
282
+ },
283
+ label:
284
+ `
285
+ <div>
286
+ <svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
287
+ width="48" height="48"
288
+ viewBox="0 0 172 172"
289
+ style=" fill:#000000;"><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><path d="M0,172v-172h172v172z" fill="none"></path><g fill="#ecf0f1"><path d="M77.9375,26.875c-13.29053,0 -24.1875,10.89697 -24.1875,24.1875c0,7.24365 3.29639,13.68945 8.39844,18.14063c-5.01807,3.94727 -8.39844,9.97315 -8.39844,16.79688c0,11.8208 9.6792,21.5 21.5,21.5h18.8125c7.47461,0 13.4375,5.96289 13.4375,13.4375c0,7.47461 -5.96289,13.4375 -13.4375,13.4375h-16.125c-7.47461,0 -13.4375,-5.96289 -13.4375,-13.4375v-2.6875h-10.75v2.6875c0,13.29053 10.89697,24.1875 24.1875,24.1875h16.125c13.29053,0 24.1875,-10.89697 24.1875,-24.1875c0,-7.24365 -3.29639,-13.68945 -8.39844,-18.14062c5.01807,-3.94727 8.39844,-9.97315 8.39844,-16.79687c0,-11.8208 -9.6792,-21.5 -21.5,-21.5h-18.8125c-7.47461,0 -13.4375,-5.96289 -13.4375,-13.4375c0,-7.47461 5.96289,-13.4375 13.4375,-13.4375h16.125c7.47461,0 13.4375,5.96289 13.4375,13.4375v2.6875h10.75v-2.6875c0,-13.29053 -10.89697,-24.1875 -24.1875,-24.1875zM75.25,74.91406c0.90283,0.10498 1.76367,0.33594 2.6875,0.33594h18.8125c6.00489,0 10.75,4.74512 10.75,10.75c0,6.00489 -4.74511,10.75 -10.75,10.75v0.33594c-0.90283,-0.10498 -1.76367,-0.33594 -2.6875,-0.33594h-18.8125c-6.00488,0 -10.75,-4.74511 -10.75,-10.75c0,-6.00488 4.74512,-10.75 10.75,-10.75z"></path></g></g></svg>
290
+ <div class="uk-text-normal uk-text-bold">Section</div>
291
+ </div>
292
+ `,
293
+ content:
294
+ `
295
+ <div class="uk-section uk-section-default">
296
+ <div class="uk-container">
297
+
298
+ <h3>Section Default</h3>
299
+
300
+ <div class="uk-grid-match uk-child-width-1-3" uk-grid>
301
+ <div>
302
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor.</p>
303
+ </div>
304
+ <div>
305
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor.</p>
306
+ </div>
307
+ <div>
308
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor.</p>
309
+ </div>
310
+ </div>
311
+
312
+ </div>
313
+ </div>
314
+ `,
315
+ render: ({ model, className }) => `<div class="${className}__my-wrap"> ${model.get('label')} </div>`,
316
+ });
317
+
318
+ blockManager.add('uikit-tile', {
319
+ category: categories.uikit,
320
+ attributes: {
321
+ title: 'Insert tile'
322
+ },
323
+ label:
324
+ `
325
+ <div>
326
+ <svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
327
+ width="48" height="48"
328
+ viewBox="0 0 172 172"
329
+ style=" fill:#000000;"><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><path d="M0,172v-172h172v172z" fill="none"></path><g fill="#ecf0f1"><path d="M17.2,34.4c-3.1648,0 -5.73333,2.56853 -5.73333,5.73333v34.4c0,3.1648 2.56853,5.73333 5.73333,5.73333h34.4c3.1648,0 5.73333,-2.56853 5.73333,-5.73333v-34.4c0,-3.1648 -2.56853,-5.73333 -5.73333,-5.73333zM80.26667,40.13333c-2.06765,-0.02924 -3.99087,1.05709 -5.03322,2.843c-1.04236,1.78592 -1.04236,3.99474 0,5.78066c1.04236,1.78592 2.96558,2.87225 5.03322,2.843h74.53333c2.06765,0.02924 3.99087,-1.05709 5.03322,-2.843c1.04236,-1.78592 1.04236,-3.99474 0,-5.78066c-1.04236,-1.78592 -2.96558,-2.87225 -5.03322,-2.843zM34.4,45.86667c6.33533,0 11.46667,5.13133 11.46667,11.46667c0,6.3296 -5.13133,11.46667 -11.46667,11.46667c-6.33533,0 -11.46667,-5.13707 -11.46667,-11.46667c0,-6.33533 5.13133,-11.46667 11.46667,-11.46667zM80.26667,63.06667c-2.06765,-0.02924 -3.99087,1.05709 -5.03322,2.843c-1.04236,1.78592 -1.04236,3.99474 0,5.78066c1.04236,1.78592 2.96558,2.87225 5.03322,2.843h51.6c2.06765,0.02924 3.99087,-1.05709 5.03322,-2.843c1.04236,-1.78592 1.04236,-3.99474 0,-5.78066c-1.04236,-1.78592 -2.96558,-2.87225 -5.03322,-2.843zM17.2,97.46667c-3.1648,0 -5.73333,2.56853 -5.73333,5.73333v34.4c0,3.1648 2.56853,5.73333 5.73333,5.73333h34.4c3.1648,0 5.73333,-2.56853 5.73333,-5.73333v-34.4c0,-3.1648 -2.56853,-5.73333 -5.73333,-5.73333zM80.26667,103.2c-2.06765,-0.02924 -3.99087,1.05709 -5.03322,2.843c-1.04236,1.78592 -1.04236,3.99474 0,5.78066c1.04236,1.78592 2.96558,2.87225 5.03322,2.843h74.53333c2.06765,0.02924 3.99087,-1.05709 5.03322,-2.843c1.04236,-1.78592 1.04236,-3.99474 0,-5.78066c-1.04236,-1.78592 -2.96558,-2.87225 -5.03322,-2.843zM22.93333,108.93333h22.93333v22.93333h-22.93333zM80.26667,126.13333c-2.06765,-0.02924 -3.99087,1.05709 -5.03322,2.843c-1.04236,1.78592 -1.04236,3.99474 0,5.78066c1.04236,1.78592 2.96558,2.87225 5.03322,2.843h51.6c2.06765,0.02924 3.99087,-1.05709 5.03322,-2.843c1.04236,-1.78592 1.04236,-3.99474 0,-5.78066c-1.04236,-1.78592 -2.96558,-2.87225 -5.03322,-2.843z"></path></g></g></svg>
330
+ <div class="uk-text-normal uk-text-bold">Tile</div>
331
+ </div>
332
+ `,
333
+ content:
334
+ `
335
+ <div class="uk-child-width-1-2 uk-grid-collapse uk-text-center" uk-grid>
336
+ <div>
337
+ <div class="uk-tile uk-tile-default">
338
+ <p class="uk-h4">Default</p>
339
+ </div>
340
+ </div>
341
+ <div>
342
+ <div class="uk-tile uk-tile-muted">
343
+ <p class="uk-h4">Muted</p>
344
+ </div>
345
+ </div>
346
+ <div>
347
+ <div class="uk-tile uk-tile-primary">
348
+ <p class="uk-h4">Primary</p>
349
+ </div>
350
+ </div>
351
+ <div>
352
+ <div class="uk-tile uk-tile-secondary">
353
+ <p class="uk-h4">Secondary</p>
354
+ </div>
355
+ </div>
356
+ </div>
357
+ `,
358
+ render: ({ model, className }) => `<div class="${className}__my-wrap"> ${model.get('label')} </div>`,
359
+ });
360
+
361
+ blockManager.add('uikit-width', {
362
+ category: categories.uikit,
363
+ attributes: {
364
+ title: 'Insert width'
365
+ },
366
+ label:
367
+ `
368
+ <div>
369
+ <svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
370
+ width="48" height="48"
371
+ viewBox="0 0 172 172"
372
+ style=" fill:#000000;"><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><path d="M0,172v-172h172v172z" fill="none"></path><g fill="#ecf0f1"><path d="M9.9975,48.0525c-0.14781,0.02688 -0.29562,0.06719 -0.43,0.1075c-1.59906,0.36281 -2.72781,1.80063 -2.6875,3.44v68.8c-0.01344,1.23625 0.63156,2.39188 1.70656,3.02344c1.075,0.61813 2.39187,0.61813 3.46687,0c1.075,-0.63156 1.72,-1.78719 1.70656,-3.02344v-68.8c0.04031,-0.99437 -0.36281,-1.94844 -1.075,-2.62031c-0.72562,-0.68531 -1.70656,-1.02125 -2.6875,-0.92719zM161.3575,48.0525c-0.14781,0.02688 -0.29562,0.06719 -0.43,0.1075c-1.59906,0.36281 -2.72781,1.80063 -2.6875,3.44v68.8c-0.01344,1.23625 0.63156,2.39188 1.70656,3.02344c1.075,0.61813 2.39187,0.61813 3.46687,0c1.075,-0.63156 1.72,-1.78719 1.70656,-3.02344v-68.8c0.04031,-0.99437 -0.36281,-1.94844 -1.075,-2.62031c-0.72562,-0.68531 -1.70656,-1.02125 -2.6875,-0.92719zM24.08,48.16c-1.89469,0 -3.44,1.54531 -3.44,3.44c0,1.89469 1.54531,3.44 3.44,3.44c1.89469,0 3.44,-1.54531 3.44,-3.44c0,-1.89469 -1.54531,-3.44 -3.44,-3.44zM37.84,48.16c-1.89469,0 -3.44,1.54531 -3.44,3.44c0,1.89469 1.54531,3.44 3.44,3.44c1.89469,0 3.44,-1.54531 3.44,-3.44c0,-1.89469 -1.54531,-3.44 -3.44,-3.44zM51.6,48.16c-1.89469,0 -3.44,1.54531 -3.44,3.44c0,1.89469 1.54531,3.44 3.44,3.44c1.89469,0 3.44,-1.54531 3.44,-3.44c0,-1.89469 -1.54531,-3.44 -3.44,-3.44zM65.36,48.16c-1.89469,0 -3.44,1.54531 -3.44,3.44c0,1.89469 1.54531,3.44 3.44,3.44c1.89469,0 3.44,-1.54531 3.44,-3.44c0,-1.89469 -1.54531,-3.44 -3.44,-3.44zM79.12,48.16c-1.89469,0 -3.44,1.54531 -3.44,3.44c0,1.89469 1.54531,3.44 3.44,3.44c1.89469,0 3.44,-1.54531 3.44,-3.44c0,-1.89469 -1.54531,-3.44 -3.44,-3.44zM92.88,48.16c-1.89469,0 -3.44,1.54531 -3.44,3.44c0,1.89469 1.54531,3.44 3.44,3.44c1.89469,0 3.44,-1.54531 3.44,-3.44c0,-1.89469 -1.54531,-3.44 -3.44,-3.44zM106.64,48.16c-1.89469,0 -3.44,1.54531 -3.44,3.44c0,1.89469 1.54531,3.44 3.44,3.44c1.89469,0 3.44,-1.54531 3.44,-3.44c0,-1.89469 -1.54531,-3.44 -3.44,-3.44zM120.4,48.16c-1.89469,0 -3.44,1.54531 -3.44,3.44c0,1.89469 1.54531,3.44 3.44,3.44c1.89469,0 3.44,-1.54531 3.44,-3.44c0,-1.89469 -1.54531,-3.44 -3.44,-3.44zM134.16,48.16c-1.89469,0 -3.44,1.54531 -3.44,3.44c0,1.89469 1.54531,3.44 3.44,3.44c1.89469,0 3.44,-1.54531 3.44,-3.44c0,-1.89469 -1.54531,-3.44 -3.44,-3.44zM147.92,48.16c-1.89469,0 -3.44,1.54531 -3.44,3.44c0,1.89469 1.54531,3.44 3.44,3.44c1.89469,0 3.44,-1.54531 3.44,-3.44c0,-1.89469 -1.54531,-3.44 -3.44,-3.44zM38.8075,68.6925c-0.14781,0.02688 -0.29562,0.06719 -0.43,0.1075c-0.55094,0.09406 -1.06156,0.30906 -1.505,0.645l-18.275,13.76c-0.90031,0.645 -1.43781,1.69313 -1.43781,2.795c0,1.10188 0.5375,2.15 1.43781,2.795l18.275,13.76c1.54531,1.15563 3.73563,0.84656 4.89125,-0.69875c1.15563,-1.54531 0.84656,-3.73562 -0.69875,-4.89125l-9.9975,-7.525h109.865l-9.9975,7.525c-1.54531,1.15563 -1.85437,3.34594 -0.69875,4.89125c1.15563,1.54531 3.34594,1.85438 4.89125,0.69875l18.275,-13.76c0.90031,-0.645 1.43781,-1.69312 1.43781,-2.795c0,-1.10187 -0.5375,-2.15 -1.43781,-2.795l-18.275,-13.76c-0.76594,-0.57781 -1.74687,-0.81969 -2.6875,-0.645c-1.41094,0.18813 -2.55312,1.22281 -2.88906,2.60688c-0.33594,1.37062 0.215,2.82187 1.38406,3.62812l9.9975,7.525h-109.865l9.9975,-7.525c1.38406,-0.84656 1.98875,-2.55312 1.43781,-4.085c-0.5375,-1.53187 -2.08281,-2.4725 -3.69531,-2.2575zM24.08,116.96c-1.89469,0 -3.44,1.54531 -3.44,3.44c0,1.89469 1.54531,3.44 3.44,3.44c1.89469,0 3.44,-1.54531 3.44,-3.44c0,-1.89469 -1.54531,-3.44 -3.44,-3.44zM37.84,116.96c-1.89469,0 -3.44,1.54531 -3.44,3.44c0,1.89469 1.54531,3.44 3.44,3.44c1.89469,0 3.44,-1.54531 3.44,-3.44c0,-1.89469 -1.54531,-3.44 -3.44,-3.44zM51.6,116.96c-1.89469,0 -3.44,1.54531 -3.44,3.44c0,1.89469 1.54531,3.44 3.44,3.44c1.89469,0 3.44,-1.54531 3.44,-3.44c0,-1.89469 -1.54531,-3.44 -3.44,-3.44zM65.36,116.96c-1.89469,0 -3.44,1.54531 -3.44,3.44c0,1.89469 1.54531,3.44 3.44,3.44c1.89469,0 3.44,-1.54531 3.44,-3.44c0,-1.89469 -1.54531,-3.44 -3.44,-3.44zM79.12,116.96c-1.89469,0 -3.44,1.54531 -3.44,3.44c0,1.89469 1.54531,3.44 3.44,3.44c1.89469,0 3.44,-1.54531 3.44,-3.44c0,-1.89469 -1.54531,-3.44 -3.44,-3.44zM92.88,116.96c-1.89469,0 -3.44,1.54531 -3.44,3.44c0,1.89469 1.54531,3.44 3.44,3.44c1.89469,0 3.44,-1.54531 3.44,-3.44c0,-1.89469 -1.54531,-3.44 -3.44,-3.44zM106.64,116.96c-1.89469,0 -3.44,1.54531 -3.44,3.44c0,1.89469 1.54531,3.44 3.44,3.44c1.89469,0 3.44,-1.54531 3.44,-3.44c0,-1.89469 -1.54531,-3.44 -3.44,-3.44zM120.4,116.96c-1.89469,0 -3.44,1.54531 -3.44,3.44c0,1.89469 1.54531,3.44 3.44,3.44c1.89469,0 3.44,-1.54531 3.44,-3.44c0,-1.89469 -1.54531,-3.44 -3.44,-3.44zM134.16,116.96c-1.89469,0 -3.44,1.54531 -3.44,3.44c0,1.89469 1.54531,3.44 3.44,3.44c1.89469,0 3.44,-1.54531 3.44,-3.44c0,-1.89469 -1.54531,-3.44 -3.44,-3.44zM147.92,116.96c-1.89469,0 -3.44,1.54531 -3.44,3.44c0,1.89469 1.54531,3.44 3.44,3.44c1.89469,0 3.44,-1.54531 3.44,-3.44c0,-1.89469 -1.54531,-3.44 -3.44,-3.44z"></path></g></g></svg>
373
+ <div class="uk-text-normal uk-text-bold">Width</div>
374
+ </div>
375
+ `,
376
+ content:
377
+ `
378
+ <div class="uk-child-width-expand uk-grid-small uk-text-center" uk-grid>
379
+ <div>
380
+ <div class="uk-card uk-card-default uk-card-body">Expand</div>
381
+ </div>
382
+ <div class="uk-width-1-3">
383
+ <div class="uk-card uk-card-default uk-card-body">1-3</div>
384
+ </div>
385
+ <div>
386
+ <div class="uk-card uk-card-default uk-card-body">Expand</div>
387
+ </div>
388
+ <div>
389
+ <div class="uk-card uk-card-default uk-card-body">Expand</div>
390
+ </div>
391
+ </div>
392
+ `,
393
+ render: ({ model, className }) => `<div class="${className}__my-wrap"> ${model.get('label')} </div>`,
394
+ });