Switch get_html replacement out for using wrap_child

This commit is contained in:
Calen Pennington
2013-09-09 16:44:37 -04:00
parent 2a11ff0bdb
commit 230bf0c643
24 changed files with 491 additions and 322 deletions

View File

@@ -814,7 +814,9 @@ def instructor_dashboard(request, course_id):
# HTML editor for email
if idash_mode == 'Email' and is_studio_course:
html_module = HtmlDescriptor(course.system, DictFieldData({'data': html_message}), ScopeIds(None, None, None, None))
email_editor = wrap_xmodule(html_module.get_html, html_module, 'xmodule_edit.html')()
fragment = course.system.render(html_module, None, 'studio_view')
fragment = wrap_xmodule('xmodule_edit.html', html_module, 'studio_view', fragment, None)
email_editor = fragment.content
studio_url = None
if is_studio_course: