Commit a6afcf90 authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 1715260: Keep tinymce fields on block config form error



behatnotneeded - will be covered by annotation_block.feature

Change-Id: Ibc5652e208ff4d65d2e845678db00ce245e91f63
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 039c5ecc
......@@ -134,6 +134,13 @@
onModalCancel(e, configbutton);
});
}
// Restart any TinyMCE fields if needed
if (typeof tinyMCE !== 'undefined') {
jQuery(form).find('textarea.wysiwyg').each(function() {
tinyMCE.execCommand('mceAddEditor', false, $(this).prop('id'));
});
}
}
//Private Methods
......
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