EDT-605 Toggling "Comment" and "DekiScript" in the styles menu doesn't clear formatting

https://youtrack.mindtouch.us/issue/EDT-605