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

[8046] Update ckeditor5 django #2559

Merged
merged 14 commits into from
Mar 28, 2024
Merged

[8046] Update ckeditor5 django #2559

merged 14 commits into from
Mar 28, 2024

Conversation

m4ra
Copy link
Contributor

@m4ra m4ra commented Feb 28, 2024

This PR still is missing the ckeditor5 changes for assets/.jsx

TODO:

  • react documents
  • iframe migrations for organisation
  • iframe migration for offlineevent
  • iframe migration for interactiveevent

Tasks

  • PR name contains story or task reference
  • Documentation (docs and inline)
  • Tests (including n+1 and django_assert_num_queries where applicable)
  • Changelog

@m4ra m4ra changed the title Update ckeditor5 django fields [8046] Update ckeditor5 django Feb 28, 2024
@m4ra m4ra requested a review from goapunk February 28, 2024 16:18
@m4ra m4ra force-pushed the mk-2024-02-ckeditor5-django branch 3 times, most recently from b777324 to 1cd0b1f Compare February 29, 2024 11:33
@m4ra m4ra force-pushed the mk-2024-02-ckeditor5-django branch from 1cd0b1f to 509b388 Compare February 29, 2024 11:53
@m4ra m4ra requested a review from goapunk February 29, 2024 11:59
apps/topicprio/forms.py Outdated Show resolved Hide resolved
docs/ckeditor.md Outdated Show resolved Hide resolved
docs/ckeditor.md Outdated Show resolved Hide resolved
Copy link
Contributor

@goapunk goapunk left a comment

Choose a reason for hiding this comment

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

the interactiveevents module needs updating as well and a migration for the iframes, similar to mb

apps/topicprio/forms.py Outdated Show resolved Hide resolved
@m4ra
Copy link
Contributor Author

m4ra commented Mar 25, 2024

the interactiveevents module needs updating as well and a migration for the iframes, similar to mb

I don't exactly follow, there is no interactiveevent in mb. can you be more specific? @goapunk

@goapunk
Copy link
Contributor

goapunk commented Mar 25, 2024

the interactiveevents module needs updating as well and a migration for the iframes, similar to mb

I don't exactly follow, there is no interactiveevent in mb. can you be more specific? @goapunk

ah, I think it's called livequestions in mb, but I did that already since I wrote that comment

@m4ra m4ra force-pushed the mk-2024-02-ckeditor5-django branch from add30d7 to 95430a3 Compare March 26, 2024 13:35
apps/organisations/forms.py Outdated Show resolved Hide resolved
field = field_cls(**kwargs)
# The CKEditor5Widget doesn't have a label field, so we need to set it
# after creating the object
if isinstance(field, CKEditor5Widget):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@goapunk shouldn't this check be against the CKEditor5Field instead of the widget?
ref https://github.com/liqd/django-ckeditor-5/blob/main/django_ckeditor_5/fields.py

Copy link
Contributor

Choose a reason for hiding this comment

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

oh, yes, and it should be CKEditor5Field above as well I guess

@m4ra m4ra force-pushed the mk-2024-02-ckeditor5-django branch from 95430a3 to 4f1f118 Compare March 27, 2024 14:14
@m4ra m4ra requested a review from goapunk March 27, 2024 14:15
Copy link
Contributor

@goapunk goapunk left a comment

Choose a reason for hiding this comment

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

Really nice!

@goapunk goapunk merged commit 36fab20 into main Mar 28, 2024
3 checks passed
@goapunk goapunk deleted the mk-2024-02-ckeditor5-django branch March 28, 2024 10:59
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.

2 participants