Fixed a few issues related to IE's 'hasLayout'
authorAlexander Ebert <ebert@woltlab.com>
Fri, 26 Dec 2014 11:48:02 +0000 (12:48 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 26 Dec 2014 11:48:02 +0000 (12:48 +0100)
wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js
wcfsetup/install/files/style/redactor.less

index 0d428ca7ef95ef80c99154a379dd30d7291bc5c7..1a8c21b9d6f5f5d470924ae2d28331e6f9d2c97a 100644 (file)
@@ -18,6 +18,10 @@ RedactorPlugins.wbbcode = function() {
                        var $identifier = this.$textarea.wcfIdentify();
                        
                        this.opts.initCallback = (function() {
+                               if ($.browser.msie) {
+                                       this.$editor.addClass('msie');
+                               }
+                               
                                // use stored editor contents
                                var $content = $.trim(this.wutil.getOption('woltlab.originalValue'));
                                if ($content.length) {
@@ -1449,17 +1453,6 @@ RedactorPlugins.wbbcode = function() {
                                $editHeader.each((function(index, editHeader) {
                                        var $editHeader = $(editHeader);
                                        $editHeader.addClass('jsRedactorQuoteEdit').click($.proxy(this.wbbcode._observeQuotesClick, this));
-                                       
-                                       if ($.browser.msie) {
-                                               var $outerDiv = $editHeader.parent().parent();
-                                               $outerDiv.attr('contenteditable', false);
-                                               $outerDiv.children('div').attr('contenteditable', true);
-                                               
-                                               // prevent resize handles being displayed
-                                               $outerDiv.on('mscontrolselect', function(event) {
-                                                       event.preventDefault();
-                                               });
-                                       }
                                }).bind(this));
                        }
                },
index 8ebc2f9ac625b318880a2f9211b4cd91c5f5306b..5f7d72bca79d5c981d02e3c463ac7ec4df553159 100644 (file)
                        }
                }
        }
+       
+       &.msie .quoteBox > .container {
+               /* resets 'hasLayout' causing IE to display resize handle and wonky editing behavior */
+               min-height: auto;
+               overflow: visible;
+               
+               .clearfix;
+       }
 }
 
 @media all and (min-width: 801px) {