|
|
@@ -373,15 +373,13 @@ export default class DomConverter {
|
|
|
if ( isBlockFiller( domNode, this.blockFiller ) ) {
|
|
|
const isSingle = domNode.parentNode && domNode.parentNode.childNodes.length <= 1;
|
|
|
|
|
|
- if ( isSingle && _hasDomParentOfType( domNode, this.blockElements ) ) {
|
|
|
+ if ( isText( domNode ) ) {
|
|
|
+ if ( isSingle && _hasDomParentOfType( domNode, this.blockElements ) ) {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+ } else {
|
|
|
return null;
|
|
|
}
|
|
|
-
|
|
|
- // if ( isText( domNode ) ) {
|
|
|
- //
|
|
|
- // } else {
|
|
|
- // return null;
|
|
|
- // }
|
|
|
}
|
|
|
|
|
|
// When node is inside UIElement return that UIElement as it's view representation.
|