Преглед на файлове

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