Trix in a Chrome extension - conflicts with on page version.
- Dominant language
- JavaScript
- Stars
- 20k
- Forks
- 1.1k
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 13
Description
Hey folks,
I'm successfully using Trix in my product and have also managed to get it working within my web extension, which is compatible with Chrome, Safari, Firefox etc.
However, when loading a page (say, in Chrome) with the editor available on the page and with the extension enabled, the page hangs and crashes... When disabling the extension or removing `import Trix from 'trix'` from the Vue component it lives in, the issue resides.
##### Steps to Reproduce
1. Install the Paced Email Chrome extension
2. Log in to Paced Email and visit the dashboard
3. The page hangs, sometimes after a couple of refreshes, but usually on load.
##### Details
* Trix version: 2.0.0-beta.0 (in both systems)
* Browser name and version: Chrome, the latest
* Operating system: macOS latest, M1 Pro
I appreciate that this is a little outside Trix's scope, but I'd appreciate some pointers if anyone can help.
The browser sometimes does the "Aw snap" with a RESULT_CODE_HUNG error. The Chrome console simply has an "Uncaught" error, and I think it's `Uncaught TypeError: Cannot read properties of undefined (reading 'file')` and somewhere within the Trix source. I can't pinpoint it correctly as it also breaks the dev tools conveniently!
Cheers!
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.