Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

298
Visualizações
How to customize plugin in tui.editor vue

The link below explains how to customize the plugin (@toast-ui/editor), but I do not know how to implement this in vue (@toast-ui/vue-editor).

tutorial-example15-customizing-toolbar-buttons (Plain JavaScript component)


GitHub page toast-ui


Incomplete code in vue:

import '@toast-ui/editor/dist/toastui-editor.css'
import { Editor } from '@toast-ui/vue-editor'

export default {
  name: 'TextEditor',
  methods:{
      createLastButton: function(){
        const button = document.createElement('button');

        button.className = 'toastui-editor-toolbar-icons last';
        button.style.backgroundImage = 'none';
        button.style.margin = '0';
        button.innerHTML = `<i>Bold</i>`;
        button.addEventListener('click', () => {
          Editor.exec('bold');
        });

        return button;
      },
  },
  data () {
    return {
      editorText:'',
      editorOpttions:{
          minHeight: '200px',
          language: 'en-US',
          useCommandShortcut: true,
          usageStatistics: true,
          hideModeSwitch: false,
          toolbarItems: [
            ['heading', 'bold', 'italic', 'strike'],
            ['hr', 'quote'],
            ['ul', 'ol', 'task', 'indent', 'outdent'],
            ['table', 'image', 'link'],
            ['code', 'codeblock'],
            ['scrollSync'],
            // Using Option: Customize the last button
            [{
              el: this.createLastButton(),
              command: 'bold',
              tooltip: 'Custom Bold'
            }]
          ]        
      },
    }
  },
  components: {
    'editor': Editor
  },
};

I have done this implementation to some extent, but I do not know how to implement the following code snippet in vue

      editor.insertToolbarItem({ groupIndex: 0, itemIndex: 0 }, {
        name: 'myItem',
        tooltip: 'Custom Button',
        command: 'bold',
        text: '@',
        className: 'toastui-editor-toolbar-icons first',
        style: { backgroundImage: 'none' }
      });
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda