Switch get_html replacement out for using wrap_child
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user