The type must be set appropriately for the forum in XenForo. For example, do not attempt to write an article if it isn't supported.
The "magic" is in the typeChanger class provided by XenForo.
This version also has a bug fix for the submission text option. The use_submission_text option was not set as a conditional.
The January 16 version has been uploaded to this site for testing.