Explorar o código

Introduce blockFillerMode in DomConverter.

Maciej Gołaszewski %!s(int64=6) %!d(string=hai) anos
pai
achega
036aef3a08
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      packages/ckeditor5-paste-from-office/src/filters/parse.js

+ 1 - 2
packages/ckeditor5-paste-from-office/src/filters/parse.js

@@ -10,7 +10,6 @@
 /* globals DOMParser */
 /* globals DOMParser */
 
 
 import DomConverter from '@ckeditor/ckeditor5-engine/src/view/domconverter';
 import DomConverter from '@ckeditor/ckeditor5-engine/src/view/domconverter';
-import { NBSP_FILLER } from '@ckeditor/ckeditor5-engine/src/view/filler';
 
 
 import { normalizeSpacing, normalizeSpacerunSpans } from './space';
 import { normalizeSpacing, normalizeSpacerunSpans } from './space';
 
 
@@ -61,7 +60,7 @@ export function parseHtml( htmlString ) {
 // @param {Document} htmlDocument Native `Document` object to be transformed.
 // @param {Document} htmlDocument Native `Document` object to be transformed.
 // @returns {module:engine/view/documentfragment~DocumentFragment}
 // @returns {module:engine/view/documentfragment~DocumentFragment}
 function documentToView( htmlDocument ) {
 function documentToView( htmlDocument ) {
-	const domConverter = new DomConverter( { blockFiller: NBSP_FILLER } );
+	const domConverter = new DomConverter( { blockFillerMode: 'nbsp' } );
 	const fragment = htmlDocument.createDocumentFragment();
 	const fragment = htmlDocument.createDocumentFragment();
 	const nodes = htmlDocument.body.childNodes;
 	const nodes = htmlDocument.body.childNodes;