learningequality / learningequality/studio
[RTE] Long formula overflows container in editor, viewer, and tree view preview
@AlexVelezLl is already working on this.
Since Aug 25, 2026.
- Dominant language
- Python
- Stars
- 191
- Forks
- 307
- Avg merge
- 5d 6h
- Merged PRs (30d)
- 10
Description
❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.
Observed behavior
When a formula node inside the Rich Text Editor (RTE) contains a long expression, the formula overflows the boundaries of its container in editor mode, viewer mode, and the content node preview in the tree view — the formula renders beyond the right edge without wrapping or clipping.
Expected behavior
The formula should not overflow its container. The correct behavior is TBD — options include showing a scrollbar on the formula node itself, or showing a scrollbar on the RTE container — but in either case the formula should not render outside its boundaries.
User-facing consequences
Content creators see broken layouts when a question contains a long formula — the formula overflows its container in the assessment editor (both edit and view modes) and in the content node preview in the tree view, making the UI look visually incorrect.
Steps to reproduce
- Create a new exercise node in Studio.
- Add a question.
- In the question field, insert a formula with a long expression (e.g.,
This > is > a > very > very > very > very > very > very > long > formula). - Observe that the formula overflows the right boundary of the RTE container in edit mode.
- Close the editor and observe the same overflow in viewer mode and in the content node preview in the tree view.
AI usage
Used Claude to help draft this issue from a description and screenshots. Reviewed and confirmed all sections for accuracy.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.