2
0
mirror of https://github.com/Ionaru/easy-markdown-editor synced 2025-09-24 16:40:55 -06:00

Remove class name from buttons

The class names collide with built-in classes such as the "table" class in Bootstrap.
This results in the buttons inheriting the style from Bootstrap (or other frameworks) that define classes with those names.
This commit is contained in:
Jonathan 2022-05-22 12:32:00 +02:00 committed by GitHub
parent 45e0f36685
commit fec033734d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -232,7 +232,6 @@ function createToolbarButton(options, enableActions, enableTooltips, shortcuts,
}
}
el.className = options.name;
el.setAttribute('type', markup);
enableTooltips = (enableTooltips == undefined) ? true : enableTooltips;