I am storing some HTML in a variable. Now I want to remove some div tags from this variable: editor_data:
function validate_step_3()
{
    var editor_data = CKEDITOR.instances.editor1.getData(); 
    var i = $(editor_data);
    alert(i);
}
The alert shows:
[object Object]
I want to remove this div
editor_data.find('#fetch_InCkeditor').remove();
                $(editor_data).find('#fetch_InCkeditor').remove(); will do. :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With