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

Merge pull request #11 from ckeditor/i/5994

Internal: Changed writer.insert() to model.insertContent(). Closes ckeditor/ckeditor5#5994.
Szymon Cofalik преди 6 години
родител
ревизия
8c4a69b15c
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      packages/ckeditor5-horizontal-line/src/horizontallinecommand.js

+ 1 - 1
packages/ckeditor5-horizontal-line/src/horizontallinecommand.js

@@ -51,7 +51,7 @@ export default class HorizontalLineCommand extends Command {
 			if ( !canSetSelection && model.schema.checkChild( horizontalElement.parent, 'paragraph' ) ) {
 				nextElement = writer.createElement( 'paragraph' );
 
-				writer.insert( nextElement, writer.createPositionAfter( horizontalElement ) );
+				model.insertContent( nextElement, writer.createPositionAfter( horizontalElement ) );
 			}
 
 			// Put the selection inside the element, at the beginning.