fix ie8 bug for wysihtml5

This commit is contained in:
vitalets
2013-01-07 10:23:26 +04:00
parent ee79d5cec4
commit df03c14c8d
4 changed files with 10 additions and 10022 deletions

View File

@@ -38,6 +38,7 @@ $(function(){
this.setAttr('rows');
this.setAttr('placeholder');
//resolve deffered when widget loaded
$.extend(this.options.wysihtml5, {
events: {
@@ -48,6 +49,15 @@ $(function(){
});
this.$input.wysihtml5(this.options.wysihtml5);
/*
In IE8 wysihtml5 iframe stays on the same line with buttons toolbar (inside popover).
Not pretty but working solution is to add <br>. If you fine better way, please send PR.
*/
if($.browser.msie && parseInt($.browser.version, 10) <= 8) {
this.$input.before('<br><br>');
}
return deferred.promise();
},