mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Bug fix for supporting CKEditor (HTMLAttribute) inside a reloaded form
SVN:trunk[2162]
This commit is contained in:
@@ -206,6 +206,16 @@ function WizardHelper(sClass, sFormPrefix, sState)
|
||||
{ json_obj: this.ToJSON(), operation: 'obj_creation_form', target_state: sTargetState, transaction_id: sTransactionId },
|
||||
function(data)
|
||||
{
|
||||
// Delete any previous instances of CKEditor
|
||||
$('#'+sFormId).find('.htmlEditor').each(function() {
|
||||
var sId = $(this).attr('id');
|
||||
var editorInst = CKEDITOR.instances[sId];
|
||||
if (editorInst)
|
||||
{
|
||||
editorInst.destroy(true);
|
||||
}
|
||||
});
|
||||
|
||||
$('#'+sFormId).html(data);
|
||||
onDelayedReady();
|
||||
$('#'+sFormId).unblock();
|
||||
|
||||
Reference in New Issue
Block a user