-
Notifications
You must be signed in to change notification settings - Fork 751
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
Update CKEditor to 4.18.0 #5089
Update CKEditor to 4.18.0 #5089
Conversation
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.
Historically we had an upgrade issue with the last upgrade, where toolbar items and other plugins moving resulted in things breaking & not loading. I believe that this will introduce a similar issue.
Additionally, there is nothing in here to remove the older 4.15.1 code, should we consider options to do this cleanup? As installations that have upgraded recently will now have 3 versions installed?
@dnnsoftware/approvers ?
Additionally, if CKEditor isn't supporting something and not shipping it, I do not believe we should be shipping it any further. Which means that we wouldn't ship the Flash & WebSpellCheck stuff. |
Good point about clean up. During my tests, I uninstalled the CKEditor provider using the Extensions panel, with the delete files option checked, and installed a new version, numerous times. This works well. Removing the extension effectively removes all associated files. But I'm not sure what happens during upgrade. Aren't extensions removed and reinstalled? I'll give it some test tomorrow. |
@daguiler In an upgrade, without a cleanup task, nothing is done to the existing files at all. In the case of CKEditor, it is very possible that additional files are present in the older directories, for example if the users added a custom toolbar item. In those situations we don't necessarily want to delete the directory/file. This might be a larger conversation. @valadas Do you remember the upgrade issues that we spent all of that time troubleshooting? Just trying to avoid doing that again ;) |
Yes. These two plugins were not included in this bundle. |
As for not destroying existing plugins, we now have support for globbing patterns in the installer code, maybe this could be one way to skip the plugins folder https://docs.dnncommunity.org/content/tutorials/extensions/dnn-manifest-schema/index.html#components I know that's what I do with some of my modules for good control over what to delete and what to keep. I made that PR in v9.5.0 #3516 Components can be ordered in the manifest, so I am thinking we do a glob that would clean the folder leaving the plugins in place before the resources are extracted there... |
I tested the most basic upgrade scenario, from latest 9.10.2 to this pull request version. |
Second test:
|
After manually deleting the 4.15.1 folder, still working fine |
I added 2 commits to address the cleanup part. I'd love some real world experience here, but my assumptions are:
@valadas One note about the cleanup "glob": it works fine and it removes all of the files, but it leaves the empty folder structure behind. In this case it leaves 124 empty folders under js/ckeditor/4.15.1. I tried to find ways to specify the 4.15.1 folder itself to be deleted, but I don't think it's possible. |
🤔 I remember there was some issue with globbing folders and I believe a folder needs to be empty in order to be able to delete it. Maybe we can make some installer adjustments to optionally allow deleting a folder even if it is not empty... I am not sure, and it is a pain to test. |
Also, I added the noteworthy label to this so to not forget to call out attention to testers for this. I do not use custom plugins and have a feeling few of us do that are aware of this PR 😄 |
Platform/Providers/HtmlEditorProviders/DNNConnect.CKE/DNNConnect.CKEditorProvider.dnn
Platform/Providers/HtmlEditorProviders/DNNConnect.CKE/DNNConnect.CKEditorProvider.dnn
82c377a
to
616a1d1
Compare
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.
Awesome!
Summary
Updates CKEditor to v4.18.0
Notes