Преглед изворни кода

After inserting a horizontal rule element, selection will be set on the element.

Kamil Piechaczek пре 6 година
родитељ
комит
1aa4f1d55c
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      packages/ckeditor5-horizontal-line/src/horizontalrulecommand.js

+ 1 - 0
packages/ckeditor5-horizontal-line/src/horizontalrulecommand.js

@@ -33,6 +33,7 @@ export default class HorizontalRuleCommand extends Command {
 			const insertPosition = findOptimalInsertionPosition( selection, model );
 
 			model.insertContent( modelElement, insertPosition );
+			writer.setSelection( modelElement, 'on' );
 		} );
 	}
 }