Merge remote-tracking branch 'refs/remotes/origin/master' into next
authorAlexander Ebert <ebert@woltlab.com>
Wed, 7 Jun 2017 10:26:23 +0000 (12:26 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 7 Jun 2017 10:26:23 +0000 (12:26 +0200)
# Conflicts:
# wcfsetup/install/files/js/WCF.Combined.min.js
# wcfsetup/install/files/js/WoltLabSuite.Core.min.js
# wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Redactor/Format.js
# wcfsetup/install/files/lib/system/api/composer.lock
# wcfsetup/install/files/lib/system/api/erusev/parsedown/README.md

1  2 
wcfsetup/install/files/js/WCF.Message.js
wcfsetup/install/files/js/WCF.Poll.js
wcfsetup/install/files/js/WCF.User.js
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Redactor/Code.js
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Redactor/Format.js
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Redactor/Quote.js
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Redactor/Spoiler.js
wcfsetup/install/files/lib/system/api/composer/installed.json

Simple merge
Simple merge
index e2f64f3fba1433d3ef74c150097cada0c20aa3a6,5e8c2bad4d0da2b2cf5b23463ee4db7d3ec89950..123c9cd737fe393b82bd305705995e2ac31f437b
  define(['Dom/Util'], function(DomUtil) {
        "use strict";
        
 +      if (!COMPILER_TARGET_DEFAULT) {
 +              var Fake = function() {};
 +              Fake.prototype = {
 +                      format: function() {},
 +                      removeFormat: function() {},
 +                      _handleParentNodes: function() {},
 +                      _getLastMatchingParent: function() {},
 +                      _isBoundaryElement: function() {},
 +                      _getSelectionMarker: function() {}
 +              };
 +              return Fake;
 +      }
 +      
+       var _isValidSelection = function(editorElement) {
+               var element = window.getSelection().anchorNode;
+               while (element) {
+                       if (element === editorElement) {
+                               return true;
+                       }
+                       
+                       element = element.parentNode;
+               }
+               
+               return false;
+       };
+       
        /**
         * @exports     WoltLabSuite/Core/Ui/Redactor/Format
         */