diff --git a/plugins/preset-webpage/src/blocks/index.js b/plugins/preset-webpage/src/blocks/index.js index fd8739d229..b66f2a1bad 100644 --- a/plugins/preset-webpage/src/blocks/index.js +++ b/plugins/preset-webpage/src/blocks/index.js @@ -6,8 +6,11 @@ export default (editor, opts) => { toAdd('link-block') && bm.add('link-block', { category: categoryName, - label: editor.I18n.t('link_block'), - attributes: { class: 'fas fa-link', style: 'font-size: 1.5rem; font-weight: 900' }, + label: ` + + + +
${editor.I18n.t('link_block')}
`, content: { type:'link', editable: false, @@ -22,9 +25,12 @@ export default (editor, opts) => { }); toAdd('quote') && bm.add('quote', { - label: editor.I18n.t('quote'), + label: ` + + + +
${editor.I18n.t('quote')}
`, category: categoryName, - attributes: { class: 'fas fa-quote-right', style: 'font-size: 1.5rem; font-weight: 900' }, content: `
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore ipsum dolor sit
` @@ -32,7 +38,11 @@ export default (editor, opts) => { toAdd('text-basic') && bm.add('text-basic', { category: categoryName, - label: editor.I18n.t('text_section'), + label: ` + + + +
${editor.I18n.t('text_section')}
`, attributes: { class: 'gjs-fonts gjs-f-h1p' }, content: `

Insert title here

diff --git a/plugins/preset-webpage/src/components/basic-blocks/blocks.js b/plugins/preset-webpage/src/components/basic-blocks/blocks.js index 72c1b12218..87fcbbc27a 100644 --- a/plugins/preset-webpage/src/components/basic-blocks/blocks.js +++ b/plugins/preset-webpage/src/components/basic-blocks/blocks.js @@ -132,9 +132,12 @@ export default function(editor, opts = {}) { toAdd('column1') && bm.add('column1', { - label: editor.I18n.t('1_column'), + label: ` + + + +
${editor.I18n.t('1_column')}
`, category: categoryName, - attributes: { class: 'gjs-fonts gjs-f-b1' }, content: `
@@ -150,8 +153,11 @@ export default function(editor, opts = {}) { toAdd('column2') && bm.add('column2', { - label: editor.I18n.t('2_columns'), - attributes: { class: 'gjs-fonts gjs-f-b2' }, + label: ` + + + +
${editor.I18n.t('2_columns')}
`, category: categoryName, content: `
@@ -169,9 +175,12 @@ export default function(editor, opts = {}) { toAdd('column3') && bm.add('column3', { - label: editor.I18n.t('3_columns'), + label: ` + + + +
${editor.I18n.t('3_columns')}
`, category: categoryName, - attributes: { class: 'gjs-fonts gjs-f-b3' }, content: `
@@ -189,9 +198,12 @@ export default function(editor, opts = {}) { toAdd('column3-7') && bm.add('column3-7', { - label: editor.I18n.t('2_columns_3_7'), + label: ` + + + +
${editor.I18n.t('2_columns_3_7')}
`, category: categoryName, - attributes: { class: 'gjs-fonts gjs-f-b37' }, content: `
+ + +
${editor.I18n.t('text')}
`, category: categoryName, - attributes: { class: 'gjs-fonts gjs-f-text' }, content: { type: 'text', content: 'Insert your text here', @@ -227,9 +242,12 @@ export default function(editor, opts = {}) { toAdd('link') && bm.add('link', { - label: editor.I18n.t('link'), + label: ` + + + +
${editor.I18n.t('link')}
`, category: categoryName, - attributes: { class: 'fas fa-link', style: 'font-size: 1.5rem; font-weight: 900' }, content: { type: 'link', content: 'Link', @@ -239,9 +257,12 @@ export default function(editor, opts = {}) { toAdd('image') && bm.add('image', { - label: editor.I18n.t('image'), + label: ` + + + +
${editor.I18n.t('image')}
`, category: categoryName, - attributes: { class: 'gjs-fonts gjs-f-image' }, content: { style: { color: 'black' }, type: 'image', @@ -251,9 +272,12 @@ export default function(editor, opts = {}) { toAdd('video') && bm.add('video', { - label: editor.I18n.t('video'), + label: ` + + + +
${editor.I18n.t('video')}
`, category: categoryName, - attributes: { class: 'fab fa-youtube', style: 'font-size: 1.5rem; font-weight: 900' }, content: { type: 'video', src: 'img/video2.webm', @@ -266,9 +290,12 @@ export default function(editor, opts = {}) { toAdd('map') && bm.add('map', { - label: editor.I18n.t('map'), + label: ` + + + +
${editor.I18n.t('map')}
`, category: categoryName, - attributes: { class: 'fas fa-map', style: 'font-size: 1.5rem; font-weight: 900' }, content: { type: 'map', style: { height: '350px' }