소스 검색

Adjusted API to changes with StyleProcessor.

Kamil Piechaczek 5 년 전
부모
커밋
d2ce36aa40
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/ckeditor5-indent/src/indentblock.js

+ 1 - 1
packages/ckeditor5-indent/src/indentblock.js

@@ -57,7 +57,7 @@ export default class IndentBlock extends Plugin {
 		const outdentConfig = Object.assign( { direction: 'backward' }, configuration );
 
 		if ( useOffsetConfig ) {
-			editor.editing.view.document.addStyleProcessorRules( addMarginRules );
+			editor.data.addStyleProcessorRules( addMarginRules );
 			this._setupConversionUsingOffset( editor.conversion );
 
 			editor.commands.add( 'indentBlock', new IndentBlockCommand( editor, new IndentUsingOffset( indentConfig ) ) );