We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9304f95 commit 1aaab1dCopy full SHA for 1aaab1d
bootstrap-wysiwyg.js
@@ -26,8 +26,9 @@
26
updateToolbar = function () {
27
if (options.activeToolbarClass) {
28
$(options.toolbarSelector).find(toolbarBtnSelector).each(function () {
29
- var command = $(this).data(options.commandRole);
30
- if (document.queryCommandState(command)) {
+ var command = $(this).data(options.commandRole),
+ format = command.match(/formatBlock (.+)/);
31
+ if (document.queryCommandState(command) || (format && (format[1] == document.queryCommandValue("formatBlock")))) {
32
$(this).addClass(options.activeToolbarClass);
33
} else {
34
$(this).removeClass(options.activeToolbarClass);
0 commit comments