-
Notifications
You must be signed in to change notification settings - Fork 1
Update CKEditor to the latest version #40
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
Conversation
🦋 Changeset detectedLatest commit: 1ef057f The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
6f7634f to
c302125
Compare
| process.env.NODE_ENV === "production" | ||
| ? process.env.CKEDITOR_LICENSE_KEY_PRODUCTION | ||
| : process.env.CKEDITOR_LICENSE_KEY_DEVELOPMENT, | ||
| : process.env.CKEDITOR_LICENSE_KEY_DEVELOPMENT || "GPL", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is needed since licenseKey is mandatory from v44: https://ckeditor.com/docs/ckeditor5/latest/updating/guides/update-to-44.html#required-license-key-configuration.
With this fallback, anybody can run yarn start to launch the dev mode without the need to specify a license. For the production build, we always want to use a proper key instead
c302125 to
cf44550
Compare
This package is built as a UMD bundle, so none of its dependencies are required at runtime.
…nipulation With the new versions of CKEditor, the method used to convert the mention elements between the view and data formats has stopped working. This commit refactors the MentionsDataProcessor to use the proper CKEditor API for manipulating view elements, specifically the ViewUpcastWriter class.
cf44550 to
1ef057f
Compare
This PR updates CKEditor to the latest available version (v47.2.0). This brings in the latest improvement and bug fixes, and it fixes the reported security vulnerabilities (even if they are related to plugins we are not using).
It is worth noting that CKEditor v47 is the first LTS release: https://ckeditor.com/docs/ckeditor5/latest/updating/guides/update-to-47.html#long-term-support. I am not sure if our license covers LTS, but it will come in handy in the future in case we want to migrate to a still-supported version without breaking changes.
Main changes:
main.jsfile, and the consumer of this package doesn't need to install them.CommunityMentionsPluginMentionsDataProcessorclass that was not working anymore, using different APIs to manipulate the elementsI set the changeset to release a major version. The package has been around for a while, and we are still at version
0.1.1. I think it is time to release a properv1.0.0.[Jira issue] https://zendesk.atlassian.net/browse/GG-4331
[Z2] https://support.zendesk.com/agent/tickets/13528906