Thread:Extension talk:WYSIWYG/Event fired when switching to/from wikitext view ?/reply (3)

To fully answer this topic's question, there is a special event fired when switching from one mode to another : beforeSetMode, which returns mode = 'wysiwyg' or 'source'.