Don't error if ckeditor adapter is missing, just fall back to text

This commit is contained in:
Nathan Gray 2013-03-25 22:22:53 +00:00
parent d361206090
commit 0c017a4b35

View File

@ -91,11 +91,14 @@ var et2_htmlarea = et2_inputWidget.extend({
{
CKEDITOR.instances[this.id].destroy();
}
this.htmlNode.ckeditor(function() {
// If value is set, pass it in here.
this.setData(self.value);
delete self.value;
},this.ck_props);
if(this.htmlNode.ckeditor)
{
this.htmlNode.ckeditor(function() {
// If value is set, pass it in here.
this.setData(self.value);
delete self.value;
},this.ck_props);
}
}
},