Commit 9eb1306e authored by Lisa Seeto's avatar Lisa Seeto

Bug 1768160: resume tinyMCE keeps old text

added line to clear tinyMCE textarea content

behatnotneeded

Change-Id: Ie5ed788bafac550389a5277bda910cdcdae35750
Signed-off-by: 's avatarLisa Seeto <lisaseeto@catalyst.net.nz>
parent a8cfd50e
......@@ -981,7 +981,7 @@ function compositeSaveCallback(form, data) {
});
// Also need to clear the innerHTML for textareas
\$j('#' + form.id + ' textarea').each(function() {
document.getElementById(\$j(this).attr('id')).innerHTML = '';
tinyMCE.get(\$(this).attr('id')).setContent('');
});
\$j('#' + key + 'form').collapse('hide');
......
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