learningequality / learningequality/studio

[RTE] Long formula overflows container in editor, viewer, and tree view preview

Open
#5,935 0 comments 0 reactions 1 assignee View on GitHub

@AlexVelezLl is already working on this.

Since Aug 25, 2026.

bug DEV: frontend P1 - important
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.

Image Image Image

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

  1. Create a new exercise node in Studio.
  2. Add a question.
  3. In the question field, insert a formula with a long expression (e.g., This > is > a > very > very > very > very > very > very > long > formula).
  4. Observe that the formula overflows the right boundary of the RTE container in edit mode.
  5. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.