Fix: test if ckeditor is enable

This commit is contained in:
Regis Houssin 2012-07-03 16:39:51 +02:00
parent 65304f2e77
commit a13bf2b93f

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',