small fix
This commit is contained in:
parent
afb146abb9
commit
9531c0f0e1
|
@ -747,13 +747,17 @@
|
||||||
parent.find(".section_type_ut").hide();
|
parent.find(".section_type_ut").hide();
|
||||||
if($(this).val() == "text"){
|
if($(this).val() == "text"){
|
||||||
parent.find(".section_type_text").show();
|
parent.find(".section_type_text").show();
|
||||||
var id = parent.find(".section_type_text textarea").attr("id");
|
parent.find(".section_type_text textarea").each(function(index){
|
||||||
CKEDITOR.replace(id);
|
id = $(this).attr("id");
|
||||||
|
CKEDITOR.replace(id);
|
||||||
|
});
|
||||||
}else if($(this).val() == "universal_table"){
|
}else if($(this).val() == "universal_table"){
|
||||||
parent.find(".section_type_ut").show();
|
parent.find(".section_type_ut").show();
|
||||||
if(parent.find(".section_type_text textarea").length > 0){
|
if(parent.find(".section_type_text textarea").length > 0){
|
||||||
var id = parent.find(".section_type_text textarea").attr("id");
|
parent.find(".section_type_text textarea").each(function(index){
|
||||||
CKEDITOR.instances[id].destroy(true);
|
id = $(this).attr("id");
|
||||||
|
CKEDITOR.instances[id].destroy(true);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue