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

Text editor does not save paragraph break formatting when the table is followed by text #481

Closed
mariajgrimaldi opened this issue Jun 2, 2024 · 4 comments

Comments

@mariajgrimaldi
Copy link
Member

mariajgrimaldi commented Jun 2, 2024

Expected behavior

The saved version of the xblock should retain the same formatting Instructor created for the xblock. The text after the table should be displayed with the new paragraph.
Text xblock editing

Actual behavior

The saved version does not retain the paragraph break after the table. The text added after the table appears immediately after the table without any paragraph break.
student view
Studio xblock view

Steps to reproduce

  1. In Studio select an option to edit Text xblock.
  2. Add a Table to the body of the Xblock.
  3. Add a paragraph after the table.
  4. Add text.
  5. save Xblock

Additional information

Tried adding multiple paragraph breaks and horizontal lines in between the table and the text, but the result was always the same - upon saving the xblock, the formatting is as in the screenshots.

Here's a course you can use for testing:
course.kv5s4klf.tar.gz

Use the Text Xblocks section.

Original issue: openedx/wg-build-test-release#370

@mariajgrimaldi
Copy link
Member Author

FYI @arbrandes @brian-smith-tcril @openedx/2u-tnl, please tag anyone who can help.

@mariajgrimaldi
Copy link
Member Author

I'm not sure if this is even an issue or simply a misuse of the TinyMCE editor, but I'm also opening the issue for documentation purposes.

@mariajgrimaldi
Copy link
Member Author

mariajgrimaldi commented Jun 2, 2024

I tested with the legacy editor, and it also happens:

Screencast.from.02-06-24.12.24.25.webm

It looks like a weird formatting issue with the text editors. I'll close the issue for now. Thanks!

@mariajgrimaldi mariajgrimaldi closed this as not planned Won't fix, can't repro, duplicate, stale Jun 2, 2024
@mariajgrimaldi
Copy link
Member Author

If you think this is something we can fix, please feel free to reopen the issue.

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

No branches or pull requests

1 participant