Rewrite toggle_extended function to work with wysiwyg editor.

References #102