asdasd
This commit is contained in:
@@ -18,27 +18,6 @@
|
||||
const icon = (path) => `<svg viewBox="0 0 24 24" width="14" height="14" aria-hidden="true"><path d="${path}" fill="currentColor"/></svg>`;
|
||||
const tableIcon = icon('M3 4h18v16H3V4zm2 2v3h6V6H5zm8 0v3h6V6h-6zM5 11v3h6v-3H5zm8 0v3h6v-3h-6zM5 16v2h6v-2H5zm8 0v2h6v-2h-6z');
|
||||
|
||||
const ensureTableTags = () => {
|
||||
const baseType = domc.getType('default');
|
||||
if (!baseType) return;
|
||||
const BaseModel = baseType.model;
|
||||
const BaseView = baseType.view;
|
||||
const tags = ['table', 'tbody', 'thead', 'tfoot', 'tr', 'td', 'th'];
|
||||
tags.forEach((tag) => {
|
||||
if (domc.getType(tag)) return;
|
||||
domc.addType(tag, {
|
||||
model: BaseModel,
|
||||
view: BaseView,
|
||||
isComponent: (el) => {
|
||||
if (el.tagName && el.tagName.toLowerCase() === tag) {
|
||||
return { type: tag };
|
||||
}
|
||||
return '';
|
||||
},
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
const collectTableCells = (component) => {
|
||||
const el = component?.view?.el;
|
||||
if (!el) return [];
|
||||
@@ -224,7 +203,6 @@
|
||||
}
|
||||
});
|
||||
|
||||
ensureTableTags();
|
||||
log('INIT', 'Table-Builder geladen.', '#10b981');
|
||||
};
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user