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

198
Vistas
TinyMce 5 + Vue.js agregar botones usando el complemento que no funciona

Uso la versión TinyMce 5 con vue.js 2. Tengo estas opciones en mi caso:

 editorOptions: { height: this.height, menubar: false, forced_root_block : false, plugins: [ 'advlist lists image charmap print preview anchor', 'searchreplace visualblocks code fullscreen', 'insertdatetime link table paste code help wordcount stylebuttons' ], color_map: [ "32D7A0", "Green", "B4BDC4", "Gray", "FFFFFF", "White", ], custom_colors: false, language: 'ru', toolbar_sticky: true, autosave_ask_before_unload: true, content_style: '.text-green { color: #32D7A0; } ' + '.text-white { color: #ffffff; } ' + '.center { text-align: center; } ', toolbar: this.toolbar, setup: function (edt) { window.tinymce.PluginManager.add('stylebuttons', function(editor) { ['pre', 'p', 'code', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'].forEach(function(name){ editor.ui.registry.addButton("style-" + name, { tooltip: "Toggle " + name, text: name.toUpperCase(), onClick: function() { editor.execCommand('mceToggleFormat', false, name); }, onPostRender: function() { var self = this, setup = function() { editor.formatter.formatChanged(name, function(state) { self.active(state); }); }; editor.formatter ? setup() : editor.on('init', setup); } }) }); }); }, }

Aquí stylebuttons registrar el complemento de botones de estilo que agrega algunos botones. Pero los botones agregados actualmente no se muestran en la barra de herramientas. ¿Cómo puedo agregar correctamente botones en el complemento?

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