浏览代码

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 ) ) );