@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 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
- yield* this.viewChildrenToDom(childView, options);
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
  /**