]> BookStack Code Mirror - bookstack/blobdiff - resources/js/wysiwyg/lexical/table/LexicalTableSelectionHelpers.ts
Lexical: Made a range of selection improvements
[bookstack] / resources / js / wysiwyg / lexical / table / LexicalTableSelectionHelpers.ts
index e098a21e498a64988efaa5960c1ab8842e4662a3..d9164a778ce5094cf19285424dd7a25ec78dc7e1 100644 (file)
@@ -917,6 +917,11 @@ export function getTable(tableElement: HTMLElement): TableDOMTable {
   while (currentNode != null) {
     const nodeMame = currentNode.nodeName;
 
+    if (nodeMame === 'COLGROUP') {
+      currentNode = currentNode.nextSibling;
+      continue;
+    }
+
     if (nodeMame === 'TD' || nodeMame === 'TH') {
       const elem = currentNode as HTMLElement;
       const cell = {