Commit e8a6b014 by Sarina Canelake

Merge pull request #20 from open-craft/smarnach/tinymce-fix

Set the base URL of TinyMCE before initialising it.
parents db22bc40 7752a37d
......@@ -46,6 +46,7 @@ function StudioEditableXBlockMixin(runtime, element) {
if (type == 'html' && tinyMceAvailable) {
if ($field.tinymce())
$field.tinymce().remove(); // Stale instance from a previous dialog. Delete it to avoid interference.
tinyMCE.baseURL = baseUrl + "/js/vendor/tinymce/js/tinymce";
$field.tinymce({
theme: 'modern',
skin: 'studio-tmce4',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment