Skip to content

fix: broken Course Overview editor on Schedule & Details page (#2599)#16

Merged
jignaciopm merged 1 commit intoednx-release/teak.masterfrom
jipm/authoring-fix-2906
Mar 24, 2026
Merged

fix: broken Course Overview editor on Schedule & Details page (#2599)#16
jignaciopm merged 1 commit intoednx-release/teak.masterfrom
jipm/authoring-fix-2906

Conversation

@jignaciopm
Copy link
Copy Markdown

Description

This PR fixes re-render issue with TinyMCE which cause lost in state and the cursor position

Backport: openedx#2599

Supporting information

(Internal) https://github.com/mitodl/hq/issues/9100

Short Video: https://github.mit.edu/storage/user/923/files/0c224c31-a86b-4346-a505-e697295d0083

Adding any text in course overview section in Schedule and Details Page causes the cursor to go back to initial point or at the very start of the editor.
This is because we are changing the initialValue of the Editor when we add/update any text which causes re-render.

Referece: https://www.tiny.cloud/docs/tinymce/5/react/#initialvalue

Testing instructions

Steps to Reproduce

  • Go to Studio Schedule and Details.
  • Go to Course Overview
  • Enter text in field
  • Expected Behavior
  • Expect to be able to enter text in field

Actual Behavior

When enter text, the cursor pops back to the 1st position in the field at every character.

@jignaciopm
Copy link
Copy Markdown
Author

These unit tests are failing in ednx-release/teak.master right now! I'm going to proceed to merge anyway as these failures are unrelated!!

@jignaciopm jignaciopm merged commit 51f15ad into ednx-release/teak.master Mar 24, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants