Skip to content

editor.js, widget.py trix 2.0.0 #50

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

Merged
merged 9 commits into from
Aug 18, 2023
Merged

Conversation

onno-timmerman
Copy link
Contributor

I ran into a problem with using the prose and htmx to upload a file. If you htmx load the editor the editor.js isn't working. This needs to be initialized again. So now you can initialize it in a easy way. Maybe there should be something in the docs about it as HTMX is fast getting popular in Django world.

Out of curiosity I tried to bump trix to 2.0.0 and all seems to work fine.

Please double test my code before merging.

Copy link
Contributor

@parisk parisk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for your contribution @onno-timmerman! I know it took quite a while to respond, but now I got the chance to review everything. I updated a few things:

  • Removed the custom key in the front-end, since it's ignored in the backend
  • Double checked that Trix 2.0 works fine
  • Created a new global window JavaScript object to act as a namespace; djangoProse
  • Formatted JavaScript code and added CI tests
  • Fixed CI to work for Pull Requests from forks.

LGTM 🦘

@parisk parisk merged commit 318a6f7 into withlogicco:main Aug 18, 2023
@parisk parisk mentioned this pull request Aug 18, 2023
@parisk parisk linked an issue Aug 18, 2023 that may be closed by this pull request
@parisk parisk mentioned this pull request Aug 18, 2023
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

Successfully merging this pull request may close these issues.

Update trix to 2.0.0
2 participants