#1174 Support HTML fields in the bulk modify form (capability to disable/enable) the field live (retrofit from trunk)

SVN:2.1.0[3893]
This commit is contained in:
Romain Quetiez
2016-02-01 15:22:49 +00:00
parent cc7f3d46a6
commit e25a89dac1
3 changed files with 28 additions and 16 deletions

View File

@@ -80,7 +80,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;
}