Previous commit did not fix all issues w/ resize handles
authorAlexander Ebert <ebert@woltlab.com>
Sat, 13 Dec 2014 13:48:33 +0000 (14:48 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 13 Dec 2014 13:48:33 +0000 (14:48 +0100)
wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js

index 01a04d334b54bd62f8d76bdff2c9934765dd2320..4f79f8e71cba3770fa1905086d3f7f3c2161532e 100644 (file)
@@ -1368,6 +1368,11 @@ RedactorPlugins.wbbcode = function() {
                                                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));
                        }