#1174: support HTML fields in the bulk modify forms (capability to enable/disable the field live)

SVN:trunk[3883]
This commit is contained in:
Denis Flaven
2016-01-26 14:32:51 +00:00
parent ef6299c6b4
commit 172e255cc2
4 changed files with 31 additions and 16 deletions

View File

@@ -99,7 +99,7 @@ class UIHTMLEditorWidget
// Could also be bound to 'instanceReady.ckeditor'
$oPage->add_ready_script("$('#$iId').bind('validate', function(evt, sFormId) { return ValidateCKEditField('$iId', '', {$this->m_sMandatory}, sFormId, '') } );\n");
$oPage->add_ready_script("$('#$iId').bind('update', function() { BlockField('cke_$iId', $('#$iId').attr('disabled')); } );\n");
$oPage->add_ready_script("$('#$iId').bind('update', function() { BlockField('cke_$iId', $('#$iId').attr('disabled')); $(this).data('ckeditorInstance').setReadOnly($(this).prop('disabled')); } );\n");
return $sHtmlValue;
}