Fix JS error when saving/sending plain text msg

pull/17/head
Francis Lachapelle 2014-01-03 14:33:27 -05:00
parent 09e14df79b
commit 009cfccb2c
1 changed files with 2 additions and 2 deletions

View File

@ -188,7 +188,7 @@ function onPostComplete(http) {
function clickedEditorSend() {
onValidate(function() {
CKEDITOR.instances.text.updateElement();
if (CKEDITOR.instances.text) CKEDITOR.instances.text.updateElement();
triggerAjaxRequest(document.pageform.action,
onPostComplete,
null,
@ -234,7 +234,7 @@ function clickedEditorSave() {
window.shouldPreserve = true;
document.pageform.action = "save";
CKEDITOR.instances.text.updateElement();
if (CKEDITOR.instances.text) CKEDITOR.instances.text.updateElement();
triggerAjaxRequest(document.pageform.action, function (http) {
if (http.readyState == 4) {