Fixed issue where bookmarks were left in script and style tags.
Fixed issue where editor was not defined when trying to lock and unlock
the undo manager.