Fix: test if ckeditor is enable

This commit is contained in:
Regis Houssin 2012-07-03 16:39:51 +02:00
parent 4a0dad9524
commit 1c97934f6d

View File

@ -69,6 +69,7 @@ $(document).ready(function() {
$('#editval_' + $(this).attr('id')).show().click(); $('#editval_' + $(this).attr('id')).show().click();
}); });
if (typeof ckeditorConfig != 'undefined') {
$('.editval_ckeditor').editable(urlSaveInPlace, { $('.editval_ckeditor').editable(urlSaveInPlace, {
type : 'ckeditor', type : 'ckeditor',
id : 'field', id : 'field',
@ -117,6 +118,7 @@ $(document).ready(function() {
$('#viewval_' + $(this).attr('id')).hide(); $('#viewval_' + $(this).attr('id')).hide();
$('#editval_' + $(this).attr('id')).show().click(); $('#editval_' + $(this).attr('id')).show().click();
}); });
}
$('.editval_string').editable(urlSaveInPlace, { $('.editval_string').editable(urlSaveInPlace, {
type : 'text', type : 'text',