fixes for Firefox

fixes to WYSIWYG where elements would not insert correctly in firefox