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

[frontend/backend] Migrate CK Editor to 9.3 (#8151) #8577

Merged
merged 2 commits into from
Oct 17, 2024

Conversation

Archidoit
Copy link
Member

@Archidoit Archidoit commented Oct 2, 2024

Proposed changes

Change the way we use CKEditor in OpenCTI.

Actual usage:
We have fetched a fix version of CKEditor and build a lib ourselves with the config we want to use it in our code.

New usage:
We fetch CKEditor from yarn as any other libs of the project and use it directly inside a new React component CKEditor that initiate the config to keep same behavior we had with the older build.

The advantage of this is that it's easier to keep an up-to-date version of CKEditor.

Related issues

@Archidoit Archidoit added the filigran team use to identify PR from the Filigran team label Oct 2, 2024
@Archidoit Archidoit linked an issue Oct 2, 2024 that may be closed by this pull request
@Archidoit Archidoit changed the title [frontend/backend] Migrate CK Editor to 9.0 (#8151) [frontend/backend] Migrate CK Editor to 9.3 (#8151) Oct 2, 2024
@lndrtrbn lndrtrbn force-pushed the issue/3402-ckeditor-bump branch from 27225d7 to 6aa1c33 Compare October 4, 2024 12:20
@Archidoit Archidoit force-pushed the issue/3402-ckeditor-bump branch 2 times, most recently from 27225d7 to cfddedf Compare October 4, 2024 15:20
@lndrtrbn lndrtrbn force-pushed the issue/3402-ckeditor-bump branch from cfddedf to 41abcb1 Compare October 7, 2024 14:34
Copy link

codecov bot commented Oct 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 66.02%. Comparing base (ef0f0c3) to head (0206983).
Report is 173 commits behind head on release/6.4.0.

Additional details and impacted files
@@                Coverage Diff                @@
##           release/6.4.0    #8577      +/-   ##
=================================================
+ Coverage          66.00%   66.02%   +0.01%     
=================================================
  Files                606      606              
  Lines              61322    61322              
  Branches            6239     6245       +6     
=================================================
+ Hits               40476    40486      +10     
+ Misses             20846    20836      -10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

Comment on lines +58 to +86
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
// eslint-disable-next-line import/extensions
import de from 'ckeditor5/translations/de.js';
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
// eslint-disable-next-line import/extensions
import en from 'ckeditor5/translations/en.js';
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
// eslint-disable-next-line import/extensions
import es from 'ckeditor5/translations/es.js';
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
// eslint-disable-next-line import/extensions
import fr from 'ckeditor5/translations/fr.js';
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
// eslint-disable-next-line import/extensions
import ja from 'ckeditor5/translations/ja.js';
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
// eslint-disable-next-line import/extensions
import ko from 'ckeditor5/translations/ko.js';
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
// eslint-disable-next-line import/extensions
import zh from 'ckeditor5/translations/zh.js';
Copy link
Member

Choose a reason for hiding this comment

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

Yes, that's disgusting, I know 🤢 but cannot found a better way with how ckeditor is bundled...

@lndrtrbn lndrtrbn force-pushed the issue/3402-ckeditor-bump branch from 5557724 to 4c0a82a Compare October 14, 2024 12:07
@labo-flg labo-flg force-pushed the release/6.4.0 branch 2 times, most recently from c150d0f to 264e053 Compare October 15, 2024 20:34
@lndrtrbn lndrtrbn force-pushed the issue/3402-ckeditor-bump branch from 4c0a82a to 665dff9 Compare October 16, 2024 09:23
@lndrtrbn lndrtrbn marked this pull request as draft October 16, 2024 09:46
@lndrtrbn lndrtrbn marked this pull request as ready for review October 16, 2024 13:05
@SouadHadjiat SouadHadjiat self-requested a review October 17, 2024 07:48
Copy link
Member

@SouadHadjiat SouadHadjiat left a comment

Choose a reason for hiding this comment

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

tested locally

@Archidoit Archidoit merged commit 6953bad into release/6.4.0 Oct 17, 2024
5 checks passed
@Archidoit Archidoit deleted the issue/3402-ckeditor-bump branch October 17, 2024 08:53
@Archidoit Archidoit added the solved use to identify issue that has been solved (must be linked to the solving PR) label Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
filigran team use to identify PR from the Filigran team solved use to identify issue that has been solved (must be linked to the solving PR)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade CKeditor to latest version
3 participants