Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

299
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda