@textbus/platform-browser 3.7.3 → 3.7.4

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.
@@ -1692,7 +1692,7 @@ let MagicInput = class MagicInput extends Input {
1692
1692
  this.handleDefaultActions(textarea);
1693
1693
  }
1694
1694
  handleDefaultActions(textarea) {
1695
- this.subscription.add(fromEvent(document, 'copy').subscribe(ev => {
1695
+ this.subscription.add(fromEvent(isFirefox() ? textarea : document, 'copy').subscribe(ev => {
1696
1696
  const selection = this.selection;
1697
1697
  if (!selection.isSelected) {
1698
1698
  return;
@@ -2068,7 +2068,7 @@ let NativeInput = class NativeInput extends Input {
2068
2068
  this.subscription.unsubscribe();
2069
2069
  }
2070
2070
  handleDefaultActions(textarea) {
2071
- this.subscription.add(fromEvent(document, 'copy').subscribe(ev => {
2071
+ this.subscription.add(fromEvent(isFirefox() ? textarea : document, 'copy').subscribe(ev => {
2072
2072
  const selection = this.selection;
2073
2073
  if (!selection.isSelected) {
2074
2074
  return;
package/bundles/index.js CHANGED
@@ -1694,7 +1694,7 @@ exports.MagicInput = class MagicInput extends Input {
1694
1694
  this.handleDefaultActions(textarea);
1695
1695
  }
1696
1696
  handleDefaultActions(textarea) {
1697
- this.subscription.add(stream.fromEvent(document, 'copy').subscribe(ev => {
1697
+ this.subscription.add(stream.fromEvent(isFirefox() ? textarea : document, 'copy').subscribe(ev => {
1698
1698
  const selection = this.selection;
1699
1699
  if (!selection.isSelected) {
1700
1700
  return;
@@ -2070,7 +2070,7 @@ exports.NativeInput = class NativeInput extends Input {
2070
2070
  this.subscription.unsubscribe();
2071
2071
  }
2072
2072
  handleDefaultActions(textarea) {
2073
- this.subscription.add(stream.fromEvent(document, 'copy').subscribe(ev => {
2073
+ this.subscription.add(stream.fromEvent(isFirefox() ? textarea : document, 'copy').subscribe(ev => {
2074
2074
  const selection = this.selection;
2075
2075
  if (!selection.isSelected) {
2076
2076
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@textbus/platform-browser",
3
- "version": "3.7.3",
3
+ "version": "3.7.4",
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",
@@ -48,5 +48,5 @@
48
48
  "bugs": {
49
49
  "url": "https://github.com/textbus/textbus.git/issues"
50
50
  },
51
- "gitHead": "db4e1056d62087b217bbe5f2c1535e5f4a4d1467"
51
+ "gitHead": "64e7eccb51f7f9c452b91d4fc5e0fe1d6c37c2f0"
52
52
  }