8
0
فهرست منبع

Changed enqueueChange to change.

Oskar Wróbel 8 سال پیش
والد
کامیت
eda4c3bcf6
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      packages/ckeditor5-link/src/linkcommand.js
  2. 1 1
      packages/ckeditor5-link/src/unlinkcommand.js

+ 1 - 1
packages/ckeditor5-link/src/linkcommand.js

@@ -57,7 +57,7 @@ export default class LinkCommand extends Command {
 		const model = this.editor.model;
 		const selection = model.document.selection;
 
-		model.enqueueChange( writer => {
+		model.change( writer => {
 			// If selection is collapsed then update selected link or insert new one at the place of caret.
 			if ( selection.isCollapsed ) {
 				const position = selection.getFirstPosition();

+ 1 - 1
packages/ckeditor5-link/src/unlinkcommand.js

@@ -35,7 +35,7 @@ export default class UnlinkCommand extends Command {
 		const model = this.editor.model;
 		const selection = model.document.selection;
 
-		model.enqueueChange( writer => {
+		model.change( writer => {
 			// Get ranges to unlink.
 			const rangesToUnlink = selection.isCollapsed ?
 				[ findLinkRange( selection.getFirstPosition(), selection.getAttribute( 'linkHref' ) ) ] : selection.getRanges();