pjasiun 10 年之前
父節點
當前提交
4675609889
共有 1 個文件被更改,包括 39 次插入0 次删除
  1. 39 0
      packages/ckeditor5-utils/src/document/range.js

+ 39 - 0
packages/ckeditor5-utils/src/document/range.js

@@ -0,0 +1,39 @@
+/**
+ * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
+ * For licensing, see LICENSE.md.
+ */
+
+'use strict';
+
+CKEDITOR.define( function() {
+	/**
+	 * Range class.
+	 *
+	 * @class document.Range
+	 */
+	class Range {
+		/**
+		 * Create an range.
+		 *
+		 * @param {document.Position} start Start position.
+		 * @param {document.Position} end End position.
+		 */
+		constructor( start, end ) {
+			/**
+			 * Start position.
+			 *
+			 * @type {document.Position}
+			 */
+			this.start = start;
+
+			/**
+			 * End position.
+			 *
+			 * @type {document.Position}
+			 */
+			this.end = end;
+		}
+	}
+
+	return Range;
+} );