prosemirror-tables
Advanced tools
Comparing version 1.2.1 to 1.2.2
{ | ||
"name": "prosemirror-tables", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "ProseMirror's rowspan/colspan tables component", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -262,8 +262,11 @@ import { Plugin, PluginKey } from 'prosemirror-state'; | ||
function handleDecorations(state, cell) { | ||
export function handleDecorations(state, cell) { | ||
let decorations = []; | ||
let $cell = state.doc.resolve(cell); | ||
let table = $cell.node(-1), | ||
map = TableMap.get(table), | ||
start = $cell.start(-1); | ||
let table = $cell.node(-1); | ||
if (!table) { | ||
return DecorationSet.empty; | ||
} | ||
let map = TableMap.get(table); | ||
let start = $cell.start(-1); | ||
let col = map.colCount($cell.pos - start) + $cell.nodeAfter.attrs.colspan; | ||
@@ -270,0 +273,0 @@ for (let row = 0; row < map.height; row++) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1419094
34
29763