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

Commit

Permalink
fix!: use TinyMCE 5 as HTML editor
Browse files Browse the repository at this point in the history
We removed TinyMCE 4 from the platform last year.

BREAKING CHANGE: This is incompatible with Nutmeg.
  • Loading branch information
Agrendalath authored and bradenmacdonald committed Jun 15, 2023
1 parent 13c9747 commit 8559c6f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion xblockutils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
Useful classes and functionality for building and testing XBlocks
"""

__version__ = '3.1.0'
__version__ = '3.2.0'
9 changes: 5 additions & 4 deletions xblockutils/public/studio_edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,18 @@ function StudioEditableXBlockMixin(runtime, element) {
if (type == 'html' && tinyMceAvailable) {
tinyMCE.baseURL = baseUrl + "/js/vendor/tinymce/js/tinymce";
$field.tinymce({
theme: 'modern',
skin: 'studio-tmce4',
theme: 'silver',
skin: 'studio-tmce5',
content_css: 'studio-tmce5',
height: '200px',
formats: { code: { inline: 'code' } },
codemirror: { path: "" + baseUrl + "/js/vendor" },
convert_urls: false,
plugins: "link codemirror",
plugins: "lists, link, codemirror",
menubar: false,
statusbar: false,
toolbar_items_size: 'small',
toolbar: "formatselect | styleselect | bold italic underline forecolor wrapAsCode | bullist numlist outdent indent blockquote | link unlink | code",
toolbar: "formatselect | styleselect | bold italic underline forecolor | bullist numlist outdent indent blockquote | link unlink | code",
resize: "both",
extended_valid_elements : 'i[class],span[class]',
setup : function(ed) {
Expand Down

0 comments on commit 8559c6f

Please sign in to comment.