@ckeditor/ckeditor5-table 45.1.0 → 45.2.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -9759,7 +9759,13 @@ const toPx = /* #__PURE__ */ toUnit('px');
|
|
|
9759
9759
|
model: {
|
|
9760
9760
|
name: 'table',
|
|
9761
9761
|
key: 'tableWidth',
|
|
9762
|
-
value: (viewElement)=>
|
|
9762
|
+
value: (viewElement)=>{
|
|
9763
|
+
const parent = viewElement.parent;
|
|
9764
|
+
if (parent.is('element', 'figure')) {
|
|
9765
|
+
return;
|
|
9766
|
+
}
|
|
9767
|
+
return viewElement.getStyle('width');
|
|
9768
|
+
}
|
|
9763
9769
|
}
|
|
9764
9770
|
});
|
|
9765
9771
|
conversion.for('downcast').attributeToAttribute({
|