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
24 lines (23 loc) • 642 B
JavaScript
var i = Object.defineProperty;
var r = (t, l, e) => l in t ? i(t, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[l] = e;
var o = (t, l, e) => r(t, typeof l != "symbol" ? l + "" : l, e);
import { TableCell as a } from "../components/TableCell.mjs";
class m {
constructor(l, e) {
o(this, "cell");
this.cell = e;
}
execute() {
const l = this.cell.parentElement, e = this.cell.cellIndex, n = this.cell.colSpan;
if (n > 1) {
this.cell.colSpan = 1;
for (let c = 1; c < n; c++) {
const s = l.insertCell(e + c);
new a(s);
}
}
}
}
export {
m as SplitCellCommand
};