Issue #1787Opened February 11, 2019by ateebahmed1 reactions

[Question] Change HTML of Panel buttons from span to button

Question

I have created some Panels and would like to change the element of panel buttons from span to button as its more appropriate and looks better with CSS, how would I configure it?

Answers (3)

artfFebruary 16, 20191 reactions

Right now it's not possible, but I'll add this possibility in the next release, so it'll be something like this:

editor.Panels.addButton('PANEL-ID', {
	id: 'test',
	tagName: 'button',
	className: 'someClass',
	command: editor => alert('Test'),
})
ateebahmedFebruary 17, 20190 reactions

That'd be great!

lock[bot]February 17, 20200 reactions

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.