From f56e70bd049bde916c368f3f79df702a73ad63db Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Wed, 28 May 2014 09:19:49 -0400 Subject: [PATCH] TinyMCE4: Fix spellchecker resume --- program/steps/mail/sendmail.inc | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/program/steps/mail/sendmail.inc b/program/steps/mail/sendmail.inc index 5bddc24..2255acc 100644 --- a/program/steps/mail/sendmail.inc +++ b/program/steps/mail/sendmail.inc @@ -301,7 +301,13 @@ $COMPOSE['spell_checked'] = true; if (!$spell_result) { - $result = $isHtml ? $spellchecker->get_words() : $spellchecker->get_xml(); + if ($isHtml) { + $result['words'] = $spellchecker->get(); + $result['dictionary'] = (bool) $RCMAIL->config->get('spellcheck_dictionary'); + } + else { + $result = $spellchecker->get_xml(); + } $OUTPUT->show_message('mispellingsfound', 'error'); $OUTPUT->command('spellcheck_resume', $isHtml, $result); -- Gitblit v1.9.1