@ckeditor/ckeditor5-engine 43.0.0-alpha.4 → 43.0.0-alpha.6
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 +11 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/view/domconverter.js +10 -1
package/dist/index.js
CHANGED
|
@@ -8689,7 +8689,17 @@ const UNSAFE_ELEMENT_REPLACEMENT_ATTRIBUTE = 'data-ck-unsafe-element';
|
|
|
8689
8689
|
}
|
|
8690
8690
|
const transparentRendering = childView.is('element') && !!childView.getCustomProperty('dataPipeline:transparentRendering') && !first(childView.getAttributes());
|
|
8691
8691
|
if (transparentRendering && this.renderingMode == 'data') {
|
|
8692
|
-
|
|
8692
|
+
// `RawElement` doesn't have #children defined, so they need to be temporarily rendered
|
|
8693
|
+
// and extracted directly.
|
|
8694
|
+
if (childView.is('rawElement')) {
|
|
8695
|
+
const tempElement = this._domDocument.createElement(childView.name);
|
|
8696
|
+
childView.render(tempElement, this);
|
|
8697
|
+
yield* [
|
|
8698
|
+
...tempElement.childNodes
|
|
8699
|
+
];
|
|
8700
|
+
} else {
|
|
8701
|
+
yield* this.viewChildrenToDom(childView, options);
|
|
8702
|
+
}
|
|
8693
8703
|
} else {
|
|
8694
8704
|
if (transparentRendering) {
|
|
8695
8705
|
/**
|