@textbus/platform-browser 4.0.0-alpha.22 → 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.
@@ -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.22",
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,8 +26,8 @@
26
26
  ],
27
27
  "dependencies": {
28
28
  "@tanbo/stream": "^1.2.3",
29
- "@textbus/core": "^4.0.0-alpha.22",
30
- "@viewfly/core": "^0.5.4",
29
+ "@textbus/core": "^4.0.0-alpha.24",
30
+ "@viewfly/core": "^0.6.0",
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": "c2df243641755e3668fb2ab8f3e1077693cda609"
51
+ "gitHead": "3456cd519a3c3daca4a437af97db4b57d34ad740"
52
52
  }