Table
This commit is contained in:
@@ -1 +1 @@
|
|||||||
1.2.81
|
1.2.82
|
||||||
@@ -222,6 +222,19 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
editor.on('component:selected', (model) => {
|
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)) {
|
if (isBridgeTableComponent(model)) {
|
||||||
model.set && model.set({
|
model.set && model.set({
|
||||||
selectable: true,
|
selectable: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user