fixed bug having to do with inserting an object before any content added to the editable div.