Add expanding wysiwyg to class materials.

From #5445.