@@ -133,7 +133,9 @@ export default function(editor, opt = {}) {
133
133
bm . add ( 'column1' , {
134
134
label : c . labelColumn1 ,
135
135
category : c . category ,
136
- attributes : { class : 'gjs-fonts gjs-f-b1' } ,
136
+ media : `<svg viewBox="0 0 24 24">
137
+ <path fill="currentColor" d="M2 20h20V4H2v16Zm-1 0V4a1 1 0 0 1 1-1h20a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1Z"/>
138
+ </svg>` ,
137
139
content : `<div ${ attrsRow } >
138
140
<div ${ attrsCell } ></div>
139
141
</div>
@@ -150,8 +152,10 @@ export default function(editor, opt = {}) {
150
152
toAdd ( 'column2' ) &&
151
153
bm . add ( 'column2' , {
152
154
label : c . labelColumn2 ,
153
- attributes : { class : 'gjs-fonts gjs-f-b2' } ,
154
155
category : c . category ,
156
+ media : `<svg viewBox="0 0 23 24">
157
+ <path fill="currentColor" d="M2 20h8V4H2v16Zm-1 0V4a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1ZM13 20h8V4h-8v16Zm-1 0V4a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1Z"/>
158
+ </svg>` ,
155
159
content : `<div ${ attrsRow } >
156
160
<div ${ attrsCell } ></div>
157
161
<div ${ attrsCell } ></div>
@@ -170,7 +174,9 @@ export default function(editor, opt = {}) {
170
174
bm . add ( 'column3' , {
171
175
label : c . labelColumn3 ,
172
176
category : c . category ,
173
- attributes : { class : 'gjs-fonts gjs-f-b3' } ,
177
+ media : `<svg viewBox="0 0 23 24">
178
+ <path fill="currentColor" d="M2 20h4V4H2v16Zm-1 0V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1ZM17 20h4V4h-4v16Zm-1 0V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1ZM9.5 20h4V4h-4v16Zm-1 0V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1Z"/>
179
+ </svg>` ,
174
180
content : `<div ${ attrsRow } >
175
181
<div ${ attrsCell } ></div>
176
182
<div ${ attrsCell } ></div>
@@ -190,7 +196,9 @@ export default function(editor, opt = {}) {
190
196
bm . add ( 'column3-7' , {
191
197
label : c . labelColumn37 ,
192
198
category : c . category ,
193
- attributes : { class : 'gjs-fonts gjs-f-b37' } ,
199
+ media : `<svg viewBox="0 0 24 24">
200
+ <path fill="currentColor" d="M2 20h5V4H2v16Zm-1 0V4a1 1 0 0 1 1-1h5a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1ZM10 20h12V4H10v16Zm-1 0V4a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H10a1 1 0 0 1-1-1Z"/>
201
+ </svg>` ,
194
202
content : `<div ${ attrsRow } >
195
203
<div ${ attrsCell } style='${
196
204
flexGrid ? 'flex-basis' : 'width'
@@ -215,7 +223,9 @@ export default function(editor, opt = {}) {
215
223
bm . add ( 'text' , {
216
224
label : c . labelText ,
217
225
category : c . category ,
218
- attributes : { class : 'gjs-fonts gjs-f-text' } ,
226
+ media : `<svg viewBox="0 0 24 24">
227
+ <path fill="currentColor" d="M18.5,4L19.66,8.35L18.7,8.61C18.25,7.74 17.79,6.87 17.26,6.43C16.73,6 16.11,6 15.5,6H13V16.5C13,17 13,17.5 13.33,17.75C13.67,18 14.33,18 15,18V19H9V18C9.67,18 10.33,18 10.67,17.75C11,17.5 11,17 11,16.5V6H8.5C7.89,6 7.27,6 6.74,6.43C6.21,6.87 5.75,7.74 5.3,8.61L4.34,8.35L5.5,4H18.5Z" />
228
+ </svg>` ,
219
229
content : {
220
230
type : 'text' ,
221
231
content : 'Insert your text here' ,
@@ -228,7 +238,9 @@ export default function(editor, opt = {}) {
228
238
bm . add ( 'link' , {
229
239
label : c . labelLink ,
230
240
category : c . category ,
231
- attributes : { class : 'fa fa-link' } ,
241
+ media : `<svg viewBox="0 0 24 24">
242
+ <path fill="currentColor" d="M3.9,12C3.9,10.29 5.29,8.9 7,8.9H11V7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H11V15.1H7C5.29,15.1 3.9,13.71 3.9,12M8,13H16V11H8V13M17,7H13V8.9H17C18.71,8.9 20.1,10.29 20.1,12C20.1,13.71 18.71,15.1 17,15.1H13V17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7Z" />
243
+ </svg>` ,
232
244
content : {
233
245
type : 'link' ,
234
246
content : 'Link' ,
@@ -240,7 +252,9 @@ export default function(editor, opt = {}) {
240
252
bm . add ( 'image' , {
241
253
label : c . labelImage ,
242
254
category : c . category ,
243
- attributes : { class : 'gjs-fonts gjs-f-image' } ,
255
+ media : `<svg viewBox="0 0 24 24">
256
+ <path fill="currentColor" d="M21,3H3C2,3 1,4 1,5V19A2,2 0 0,0 3,21H21C22,21 23,20 23,19V5C23,4 22,3 21,3M5,17L8.5,12.5L11,15.5L14.5,11L19,17H5Z" />
257
+ </svg>` ,
244
258
content : {
245
259
style : { color : 'black' } ,
246
260
type : 'image' ,
@@ -252,7 +266,9 @@ export default function(editor, opt = {}) {
252
266
bm . add ( 'video' , {
253
267
label : c . labelVideo ,
254
268
category : c . category ,
255
- attributes : { class : 'fa fa-youtube-play' } ,
269
+ media : `<svg viewBox="0 0 24 24">
270
+ <path fill="currentColor" d="M10,15L15.19,12L10,9V15M21.56,7.17C21.69,7.64 21.78,8.27 21.84,9.07C21.91,9.87 21.94,10.56 21.94,11.16L22,12C22,14.19 21.84,15.8 21.56,16.83C21.31,17.73 20.73,18.31 19.83,18.56C19.36,18.69 18.5,18.78 17.18,18.84C15.88,18.91 14.69,18.94 13.59,18.94L12,19C7.81,19 5.2,18.84 4.17,18.56C3.27,18.31 2.69,17.73 2.44,16.83C2.31,16.36 2.22,15.73 2.16,14.93C2.09,14.13 2.06,13.44 2.06,12.84L2,12C2,9.81 2.16,8.2 2.44,7.17C2.69,6.27 3.27,5.69 4.17,5.44C4.64,5.31 5.5,5.22 6.82,5.16C8.12,5.09 9.31,5.06 10.41,5.06L12,5C16.19,5 18.8,5.16 19.83,5.44C20.73,5.69 21.31,6.27 21.56,7.17Z" />
271
+ </svg>` ,
256
272
content : {
257
273
type : 'video' ,
258
274
src : 'img/video2.webm' ,
@@ -266,8 +282,10 @@ export default function(editor, opt = {}) {
266
282
toAdd ( 'map' ) &&
267
283
bm . add ( 'map' , {
268
284
label : c . labelMap ,
285
+ media : `<svg viewBox="0 0 24 24">
286
+ <path fill="currentColor" d="M20.5,3L20.34,3.03L15,5.1L9,3L3.36,4.9C3.15,4.97 3,5.15 3,5.38V20.5A0.5,0.5 0 0,0 3.5,21L3.66,20.97L9,18.9L15,21L20.64,19.1C20.85,19.03 21,18.85 21,18.62V3.5A0.5,0.5 0 0,0 20.5,3M10,5.47L14,6.87V18.53L10,17.13V5.47M5,6.46L8,5.45V17.15L5,18.31V6.46M19,17.54L16,18.55V6.86L19,5.7V17.54Z" />
287
+ </svg>` ,
269
288
category : c . category ,
270
- attributes : { class : 'fa fa-map-o' } ,
271
289
content : {
272
290
type : 'map' ,
273
291
style : { height : '350px' }
0 commit comments