UNPKG

on-codemerge

Version:

A WYSIWYG editor for on-codemerge is a user-friendly interface that allows users to edit and view their code in real time, exactly as it will appear in the final product

17 lines (16 loc) 480 B
var s = Object.defineProperty; var o = (c, e, l) => e in c ? s(c, e, { enumerable: !0, configurable: !0, writable: !0, value: l }) : c[e] = l; var n = (c, e, l) => o(c, typeof e != "symbol" ? e + "" : e, l); class a { constructor(e, l) { n(this, "cell"); this.cell = l; } execute() { const e = this.cell.parentElement, l = this.cell.cellIndex, t = e.cells[l + 1]; t && (this.cell.colSpan += t.colSpan, t.remove()); } } export { a as MergeCellsCommand };