fix unable to insert image in wysiwyg when post is new