Skip to content

Commit

Permalink
improvement: preserve visual editor state between form submits
Browse files Browse the repository at this point in the history
  • Loading branch information
chilek committed Oct 11, 2018
1 parent da7e9b2 commit cf246d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/jquery.js
Expand Up @@ -1094,7 +1094,9 @@ $(function() {
} else {
inputname = $(this).closest('form').attr('name') + '[wysiwyg]';
}
parent.append($('<div class="lms-ui-wysiwyg-editor"><label><input type="checkbox" name="' + inputname +
parent.append($('<div class="lms-ui-wysiwyg-editor"><label>' +
'<input type="hidden" name="' + inputname + '" value="false">' +
'<input type="checkbox" name="' + inputname +
'" value="true"' + (wysiwyg ? ' checked' : '') + '>' + $t('visual editor') +
'</label></div')).find('div.lms-ui-wysiwyg-editor').append(this);

Expand Down

0 comments on commit cf246d9

Please sign in to comment.