Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

197
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!