GrapesJS / blocks-flexbox

Add the flexbox block
https://codepen.io/artf/full/qpWBRW/
BSD 3-Clause "New" or "Revised" License
38 stars 33 forks source link

Block name #4

Closed robsonsobral closed 3 years ago

robsonsobral commented 3 years ago

Hi, @artf !

Please, how do I change the name of the block? I need to translate it.

image

I tried different settings.

        pluginsOpts: {
          [blocksFlexbox]: {
            blockLabel: 'Colunas flexíveis', //trying
            flexboxBlock: {
              blockLabel: 'Colunas flexíveis', //trying
            },
            labelColumn: 'Coluna',
            labelRow: 'Linha',
          },
          [presetWebpage]: webpagePreset,
          [customCode]: {
            blockLabel: 'Código personalizado',
            placeholderContent: '<span>Insira seu código aqui</span>',
            modalTitle: 'Insira seu código',
            buttonLabel: 'Salvar',
          },
        },

Thank you, @artf !

robsonsobral commented 3 years ago

@artf , I saw the 2 incomplete PRs to fix it. If you don't mind, I can make a new pull request fixing everything.

robsonsobral commented 3 years ago

Deprecated plugin.