fix double encoding in frontend editor for icon_src of plugins inserted into wymeditor #1204

Closed
wants to merge 1 commit into
from
Jump to file
+2 −2
Split
View
@@ -1279,8 +1279,8 @@ def edit_plugin(self, request, plugin_id):
'name': unicode(saved_object),
"type": saved_object.get_plugin_name(),
'plugin_id': plugin_id,
- 'icon': force_escape(escapejs(saved_object.get_instance_icon_src())),
- 'alt': force_escape(escapejs(saved_object.get_instance_icon_alt())),
+ 'icon': force_escape(saved_object.get_instance_icon_src()),
+ 'alt': force_escape(saved_object.get_instance_icon_alt()),
}
return render_to_response('admin/cms/page/plugin_forms_ok.html', context, RequestContext(request))