@textbus/platform-browser 4.0.0-alpha.23 → 4.0.0-alpha.24
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 +2 -2
- package/bundles/index.js +2 -2
- package/package.json +3 -3
package/bundles/index.esm.js
CHANGED
@@ -1341,7 +1341,7 @@ let MagicInput = class MagicInput extends Input {
|
|
1341
1341
|
this.handleDefaultActions(textarea);
|
1342
1342
|
}
|
1343
1343
|
handleDefaultActions(textarea) {
|
1344
|
-
this.subscription.add(fromEvent(document, 'copy').subscribe(ev => {
|
1344
|
+
this.subscription.add(fromEvent(isFirefox() ? textarea : document, 'copy').subscribe(ev => {
|
1345
1345
|
const selection = this.selection;
|
1346
1346
|
if (!selection.isSelected) {
|
1347
1347
|
return;
|
@@ -1988,7 +1988,7 @@ let NativeInput = class NativeInput extends Input {
|
|
1988
1988
|
this.subscription.unsubscribe();
|
1989
1989
|
}
|
1990
1990
|
handleDefaultActions(textarea) {
|
1991
|
-
this.subscription.add(fromEvent(document, 'copy').subscribe(ev => {
|
1991
|
+
this.subscription.add(fromEvent(isFirefox() ? textarea : document, 'copy').subscribe(ev => {
|
1992
1992
|
const selection = this.selection;
|
1993
1993
|
if (!selection.isSelected) {
|
1994
1994
|
return;
|
package/bundles/index.js
CHANGED
@@ -1343,7 +1343,7 @@ exports.MagicInput = class MagicInput extends Input {
|
|
1343
1343
|
this.handleDefaultActions(textarea);
|
1344
1344
|
}
|
1345
1345
|
handleDefaultActions(textarea) {
|
1346
|
-
this.subscription.add(stream.fromEvent(document, 'copy').subscribe(ev => {
|
1346
|
+
this.subscription.add(stream.fromEvent(isFirefox() ? textarea : document, 'copy').subscribe(ev => {
|
1347
1347
|
const selection = this.selection;
|
1348
1348
|
if (!selection.isSelected) {
|
1349
1349
|
return;
|
@@ -1990,7 +1990,7 @@ let NativeInput = class NativeInput extends Input {
|
|
1990
1990
|
this.subscription.unsubscribe();
|
1991
1991
|
}
|
1992
1992
|
handleDefaultActions(textarea) {
|
1993
|
-
this.subscription.add(stream.fromEvent(document, 'copy').subscribe(ev => {
|
1993
|
+
this.subscription.add(stream.fromEvent(isFirefox() ? textarea : document, 'copy').subscribe(ev => {
|
1994
1994
|
const selection = this.selection;
|
1995
1995
|
if (!selection.isSelected) {
|
1996
1996
|
return;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@textbus/platform-browser",
|
3
|
-
"version": "4.0.0-alpha.
|
3
|
+
"version": "4.0.0-alpha.24",
|
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",
|
@@ -26,7 +26,7 @@
|
|
26
26
|
],
|
27
27
|
"dependencies": {
|
28
28
|
"@tanbo/stream": "^1.2.3",
|
29
|
-
"@textbus/core": "^4.0.0-alpha.
|
29
|
+
"@textbus/core": "^4.0.0-alpha.24",
|
30
30
|
"@viewfly/core": "^0.6.0",
|
31
31
|
"reflect-metadata": "^0.1.13"
|
32
32
|
},
|
@@ -48,5 +48,5 @@
|
|
48
48
|
"bugs": {
|
49
49
|
"url": "https://github.com/textbus/textbus.git/issues"
|
50
50
|
},
|
51
|
-
"gitHead": "
|
51
|
+
"gitHead": "3456cd519a3c3daca4a437af97db4b57d34ad740"
|
52
52
|
}
|