Table
This commit is contained in:
@@ -222,6 +222,19 @@
|
||||
}
|
||||
|
||||
editor.on('component:selected', (model) => {
|
||||
if (!model) return;
|
||||
if (model.get && model.get('tagName') === 'tr') {
|
||||
const parent = model.parent && model.parent();
|
||||
const table = parent && (parent.get && parent.get('tagName') === 'table' ? parent : parent.parent && parent.parent());
|
||||
if (isBridgeTableComponent(table)) {
|
||||
const cells = model.components && model.components();
|
||||
const firstCell = cells && cells.length ? cells.at(0) : null;
|
||||
if (firstCell) {
|
||||
editor.select(firstCell);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (isBridgeTableComponent(model)) {
|
||||
model.set && model.set({
|
||||
selectable: true,
|
||||
|
||||
Reference in New Issue
Block a user