Skip to content

Commit a7f8964

Browse files
authored
Merge pull request #206 from WordPress/update/tinymce-single/active-class
Change mce-active class to is-active.
2 parents 326d4d8 + b548fc4 commit a7f8964

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

shared/tinymce/toolbar.js

+3
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@
4949
} );
5050

5151
return this;
52+
},
53+
active: function( isActive ) {
54+
this.$( this.getEl() ).toggleClass( 'is-active', isActive );
5255
}
5356
} );
5457

tinymce-single/tinymce/block.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
background-color: #f0f2f4;
7272
}
7373

74-
.mce-inline-toolbar-grp .mce-btn.mce-active,
74+
.mce-inline-toolbar-grp .mce-btn.is-active,
7575
.mce-inline-toolbar-grp .mce-btn:active {
7676
background-color: #e0e5e9;
7777
}

0 commit comments

Comments
 (0)