2
0
mirror of https://github.com/Ionaru/easy-markdown-editor synced 2025-07-21 08:54:28 -06:00

Fix fullscreen icon not remaining active

This commit is contained in:
Wes Cossick 2015-08-08 15:00:01 -05:00
parent 67b1ac7ca8
commit d8ad2959a8

View File

@ -664,7 +664,7 @@ SimpleMDE.prototype.createToolbar = function(items) {
var el = toolbar_data[key]; var el = toolbar_data[key];
if (stat[key]) { if (stat[key]) {
el.className += ' active'; el.className += ' active';
} else { } else if(key != "fullscreen") {
el.className = el.className.replace(/\s*active\s*/g, ''); el.className = el.className.replace(/\s*active\s*/g, '');
} }
})(key); })(key);