Skip to content

[frontend] Text editor improvements (#15392) - #15370

Merged
Ludovic Bouges (ludovic) merged 24 commits into
masterfrom
oob/editor
Apr 20, 2026
Merged

[frontend] Text editor improvements (#15392)#15370
Ludovic Bouges (ludovic) merged 24 commits into
masterfrom
oob/editor

Conversation

@ludovic

@ludovic Ludovic Bouges (ludovic) commented Apr 3, 2026

Copy link
Copy Markdown
Member

Proposed changes

  • Introduce Tiptap as a new rich text editor, placed behind a feature flag while keeping CKEditor as the default
  • Add support for key formatting features: font size, highlight colors, indentation, checkboxes, page breaks, source mode
  • Improve table handling with nested table support, inline width preservation, and a custom legacy table extension
  • Improve image handling with figure support and backward compatibility
  • Fix various styling issues (paragraphs in tables, blockquote/paragraph spacing, preformatted text, highlight colors)

Related issues

Checklist

  • I consider the submitted work as finished
  • I tested the code for its functionality
  • I wrote test cases for the relevant uses case (coverage and e2e)
  • I added/update the relevant documentation (either on github or on notion)
  • Where necessary I refactored code to improve the overall quality

Further comments

@codecov

codecov Bot commented Apr 3, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 2.96643% with 1243 lines in your changes missing coverage. Please review.
✅ Project coverage is 33.46%. Comparing base (3ba5330) to head (958129a).
⚠️ Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
...rm/opencti-front/src/components/RichTextEditor.tsx 0.75% 393 Missing ⚠️
...ents/richTextEditor/extensions/ImageWithOptions.ts 0.45% 219 Missing ⚠️
...onents/richTextEditor/extensions/TableCellSplit.ts 0.79% 125 Missing ⚠️
.../components/richTextEditor/TiptapEditorToolbar.tsx 4.16% 115 Missing ⚠️
.../src/components/richTextEditor/extensions/Table.ts 1.49% 66 Missing ⚠️
.../src/components/richTextEditor/TableGridPicker.tsx 7.81% 59 Missing ⚠️
...tform/opencti-front/src/components/HtmlDisplay.tsx 0.00% 45 Missing ⚠️
.../components/richTextEditor/extensions/PageBreak.ts 2.77% 35 Missing ⚠️
...ncti-front/src/components/fields/RichTextField.tsx 0.00% 25 Missing ⚠️
...src/components/richTextEditor/TableContextMenu.tsx 8.33% 22 Missing ⚠️
... and 18 more
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #15370      +/-   ##
==========================================
- Coverage   33.55%   33.46%   -0.09%     
==========================================
  Files        3168     3190      +22     
  Lines      214726   216256    +1530     
  Branches    39469    39863     +394     
==========================================
+ Hits        72057    72376     +319     
- Misses     142669   143880    +1211     
Flag Coverage Δ
opencti-client-python 45.60% <ø> (ø)
opencti-front 2.94% <2.96%> (-0.01%) ⬇️
opencti-graphql 69.96% <ø> (+0.09%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ludovic
Ludovic Bouges (ludovic) force-pushed the oob/editor branch 4 times, most recently from 5f2d167 to fa3437a Compare April 3, 2026 16:46
@ludovic Ludovic Bouges (ludovic) changed the title Oob/editor Oob/editor (#15392) Apr 7, 2026
@ludovic Ludovic Bouges (ludovic) changed the title Oob/editor (#15392) [frontend] Oob/editor (#15392) Apr 7, 2026
@ludovic Ludovic Bouges (ludovic) added the filigran team Item from the Filigran team. label Apr 8, 2026
@ludovic Ludovic Bouges (ludovic) changed the title [frontend] Oob/editor (#15392) [frontend] Text editor improvements (#15392) Apr 8, 2026
@ludovic
Ludovic Bouges (ludovic) marked this pull request as ready for review April 8, 2026 13:52
Xavier Fournet (xfournet) and others added 18 commits April 20, 2026 09:51
@ludovic
Ludovic Bouges (ludovic) merged commit 09449b4 into master Apr 20, 2026
45 checks passed
@ludovic
Ludovic Bouges (ludovic) deleted the oob/editor branch April 20, 2026 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

filigran team Item from the Filigran team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Text editor improvements

4 participants