2
0
forked from Wavyzz/dolibarr

Fix: test if ckeditor is enabled

This commit is contained in:
Regis Houssin
2012-08-26 21:47:56 +02:00
parent 7fa4b9b423
commit efa471b12b
2 changed files with 4 additions and 4 deletions

View File

@@ -136,7 +136,7 @@ function ajax_autocompleter($selected, $htmlname, $url, $urloption='', $minLengt
}
if (ui.item.textarea) {
$.each(ui.item.textarea, function(key, value) {
if (CKEDITOR) {
if (typeof CKEDITOR == "object") {
CKEDITOR.instances[key].setData(value);
CKEDITOR.instances[key].focus();
} else {