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, then I want to remove a div tag in this variable.