djangocms-text-ckeditor icon indicating copy to clipboard operation
djangocms-text-ckeditor copied to clipboard

Fix: hide notification

Open corentinbettiol opened this issue 1 year ago • 4 comments

As explained in #668, ckeditor started showing notifications about the current version being "insecure". This PR removes the code making it check the version and show the notification.

corentinbettiol avatar Feb 08 '24 08:02 corentinbettiol

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 81.79%. Comparing base (fea95ed) to head (36c1e9a).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #669   +/-   ##
=======================================
  Coverage   81.79%   81.79%           
=======================================
  Files          20       20           
  Lines         912      912           
  Branches      122      122           
=======================================
  Hits          746      746           
  Misses        138      138           
  Partials       28       28           

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Feb 08 '24 09:02 codecov[bot]

@corentinbettiol Can you build the ckeditor.js file uncompressed (./dev/builder/build.sh --leave-js-unminified command, I believe)? All CKeditor licenses require the source to be distributed along with a modified version. It will be minified when building the bundle (using gulp bundle).

fsbraun avatar Feb 08 '24 09:02 fsbraun

@fsbraun I just took the file content from cdn.jsdelivr.net/npm/[email protected]/ckeditor.js, formatted it, removed the notification code, and re-minified it.

All CKeditor licenses require the source to be distributed along with a modified version. It will be minified when building the bundle (using gulp bundle).

I don't understand this part. The content of the file on the master branch is minified.

corentinbettiol avatar Feb 08 '24 11:02 corentinbettiol

@corentinbettiol Sorry, for being unclear. Yes, the distributed versions of ckeditor4 are minified. But since we're about to change it, the license requires a "source". As described in https://github.com/django-cms/djangocms-text-ckeditor/blob/master/UPGRADE.md , could you try building ckeditor4 from source (non-minified) and then remove the warning code?

fsbraun avatar Feb 08 '24 12:02 fsbraun

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar May 09 '24 06:05 stale[bot]

This will now be closed due to inactivity, but feel free to reopen it.

stale[bot] avatar Jun 07 '24 12:06 stale[bot]