Skip to content
This repository has been archived by the owner on Oct 5, 2023. It is now read-only.

fix!: use TinyMCE 5 as HTML editor #207

Conversation

Agrendalath
Copy link
Contributor

Description

We removed TinyMCE 4 from the platform last year. The editor changes are similar to openedx/edx-ora2#1869.

Testing instructions

  1. Install edx-sga.
  2. Check that the "Solution" field in Studio has a working TinyMCE editor.

Author's notes

BREAKING CHANGE: This is incompatible with Nutmeg.

@openedx-webhooks
Copy link

Thanks for the pull request, @Agrendalath! Please note that it may take us up to several weeks or months to complete a review and merge your PR.

Feel free to add as much of the following information to the ticket as you can:

  • supporting documentation
  • Open edX discussion forum threads
  • timeline information ("this must be merged by XX date", and why that is)
  • partner information ("this is a course on edx.org")
  • any other information that can help Product understand the context for the PR

All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here.

Please let us know once your PR is ready for our review and all tests are green.

@openedx-webhooks openedx-webhooks added the open-source-contribution PR author is not from Axim or 2U label Jun 6, 2023
menubar: false,
statusbar: false,
toolbar_items_size: 'small',
toolbar: "formatselect | styleselect | bold italic underline forecolor wrapAsCode | bullist numlist outdent indent blockquote | link unlink | code",
Copy link
Contributor Author

@Agrendalath Agrendalath Jun 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrapAsCode is a custom button, which is defined directly in edx-platform. Since it has not been working before, we can remove it.

height: '200px',
formats: { code: { inline: 'code' } },
codemirror: { path: "" + baseUrl + "/js/vendor" },
convert_urls: false,
plugins: "link codemirror",
plugins: "lists, link, codemirror",
Copy link
Contributor Author

@Agrendalath Agrendalath Jun 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bullist and numlist need the lists plugin.

@Agrendalath
Copy link
Contributor Author

@bradenmacdonald, I found this issue while working on mitodl/edx-sga#339. Since the fix is trivial, I just opened this PR. Would you like to review it?

@bradenmacdonald
Copy link
Contributor

@Agrendalath Thanks! I can review it, yep. Not sure if I'll get to it today though.

Copy link
Contributor

@bradenmacdonald bradenmacdonald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and works well!

👍

  • I tested this: as requested; see screenshot below
  • I read through the code
  • I checked for accessibility issues: n/a
  • Includes documentation: n/a

Screenshot 2023-06-13 at 1 46 33 PM

We removed TinyMCE 4 from the platform last year.

BREAKING CHANGE: This is incompatible with Nutmeg.
@Agrendalath Agrendalath force-pushed the agrendalath/fix_tinymce_editor branch from 9895be3 to 5ad7bb5 Compare June 14, 2023 08:50
@Agrendalath
Copy link
Contributor Author

@bradenmacdonald, would you mind merging and releasing this?

@bradenmacdonald bradenmacdonald merged commit 8559c6f into openedx-unsupported:master Jun 15, 2023
@openedx-webhooks
Copy link

@Agrendalath 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future.

@bradenmacdonald bradenmacdonald deleted the agrendalath/fix_tinymce_editor branch June 15, 2023 19:12
@bradenmacdonald
Copy link
Contributor

@Agrendalath Sure, done.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
open-source-contribution PR author is not from Axim or 2U
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants