I cannot publish the jquery lightbox slide using 'Insert to page' option

Q: Dear Support,

I am trying to paste the gallery into my page. I use "Insert to page" option but it doesn't work, nothing happens or sometimes I get the message that components have been removed successfully.
What am I doing wrong?

A: If you choose "Insert to page" publishing method, make sure that you don't have mistakes
in marking on this page and also this page should contain at least one visible element,
for example, <div></div>, <p></p>.