@textbus/platform-browser 3.3.0-alpha.3 → 3.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/index.esm.js +4 -0
- package/bundles/index.js +4 -0
- package/package.json +3 -3
package/bundles/index.esm.js
CHANGED
@@ -481,6 +481,10 @@ let SelectionBridge = class SelectionBridge {
|
|
481
481
|
oldSelection.focusNode = focusNode;
|
482
482
|
oldSelection.focusOffset = focusOffset;
|
483
483
|
}
|
484
|
+
else {
|
485
|
+
const nativeRange = this.nativeSelection.getRangeAt(0);
|
486
|
+
this.selectionChangeEvent.next(nativeRange || null);
|
487
|
+
}
|
484
488
|
}));
|
485
489
|
}
|
486
490
|
syncSelection(connector) {
|
package/bundles/index.js
CHANGED
@@ -483,6 +483,10 @@ exports.SelectionBridge = class SelectionBridge {
|
|
483
483
|
oldSelection.focusNode = focusNode;
|
484
484
|
oldSelection.focusOffset = focusOffset;
|
485
485
|
}
|
486
|
+
else {
|
487
|
+
const nativeRange = this.nativeSelection.getRangeAt(0);
|
488
|
+
this.selectionChangeEvent.next(nativeRange || null);
|
489
|
+
}
|
486
490
|
}));
|
487
491
|
}
|
488
492
|
syncSelection(connector) {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@textbus/platform-browser",
|
3
|
-
"version": "3.3.
|
3
|
+
"version": "3.3.1",
|
4
4
|
"description": "Textbus is a rich text editor and framework that is highly customizable and extensible to achieve rich wysiwyg effects.",
|
5
5
|
"main": "./bundles/index.js",
|
6
6
|
"module": "./bundles/index.esm.js",
|
@@ -27,7 +27,7 @@
|
|
27
27
|
"dependencies": {
|
28
28
|
"@tanbo/di": "^1.1.4",
|
29
29
|
"@tanbo/stream": "^1.1.9",
|
30
|
-
"@textbus/core": "^3.3.
|
30
|
+
"@textbus/core": "^3.3.1",
|
31
31
|
"reflect-metadata": "^0.1.13"
|
32
32
|
},
|
33
33
|
"devDependencies": {
|
@@ -48,5 +48,5 @@
|
|
48
48
|
"bugs": {
|
49
49
|
"url": "https://github.com/textbus/textbus.git/issues"
|
50
50
|
},
|
51
|
-
"gitHead": "
|
51
|
+
"gitHead": "afa1c378f5f46be38bd4b1fe8f881e7c6e0c7478"
|
52
52
|
}
|