Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Trix to v2 #72

Open
mech opened this issue Jan 26, 2024 · 3 comments
Open

Upgrade Trix to v2 #72

mech opened this issue Jan 26, 2024 · 3 comments

Comments

@mech
Copy link
Contributor

mech commented Jan 26, 2024

Hi,

Is there a way to upgrade the Trix from v1.3.1 to v2.0.8 as it fix quite a bit of Safari bugs.

Regards

@abhaynikam
Copy link
Owner

@mech Thanks for reporting the issue. I'll try upgrading the Trix version this weekend.

@mech
Copy link
Contributor Author

mech commented Jan 29, 2024

Tks! I actually do the upgrade myself (https://github.com/mech/react-trix-rte/commits/master/), but using Next.js project it somehow failed to perform "next build". It hang actually. Now I basically rebuild the dist/index.js and use that directly and also referencing the trix.js directly using <script>.

// Use the one from dist/index.js directly (copied to public/react-trix-rte.js)
const {
  ReactTrixRTEToolbar,
  ReactTrixRTEInput,
} = require("public/react-trix-rte");
<!-- At my Next.js _document.js file -->
<script src="/trix-2.0.8.js" />

I am not sure why "next build" fail while development can work though 🤪

Just FYI if you still free to investigate.

FYI also the node-sass I changed to sass as it will not compile also.

@OtherCroissant
Copy link
Contributor

@abhaynikam Can I help fixing this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants