Bläddra i källkod

prevent selection of the document elemnt

Gildas 5 år sedan
förälder
incheckning
91c3dd55df
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      extension/ui/content/content-ui-editor-web.js

+ 1 - 1
extension/ui/content/content-ui-editor-web.js

@@ -1236,7 +1236,7 @@ table {
 							pathIndex += delta;
 							nextElement = cuttingPath[pathIndex];
 						}
-						if (nextElement && nextElement.classList && nextElement != document.body) {
+						if (nextElement && nextElement.classList && nextElement != document.body && nextElement != document.documentElement) {
 							unhighlightCutElement();
 							cuttingPathIndex = pathIndex;
 							highlightCutElement(cuttingPath[cuttingPathIndex]);