multiple bug fixes and addition of some new functionality in the WYSIWYG editor