def render(self, name, value, attrs=None, renderer=None):
    if (value is None):
        value = ''
    editor_id = ('id_%s' % name.replace('-', '_'))
    uSettings = {'name': name, 'id': editor_id, 'value': value}
    if isinstance(self.command, list):
        cmdjs = ''
        if isinstance(self.command, list):
            for cmd in self.command:
                cmdjs = (cmdjs + cmd.render(editor_id))
        else:
            cmdjs = self.command.render(editor_id)
        uSettings['commands'] = cmdjs
    uSettings['settings'] = self.ueditor_settings.copy()
    uSettings['settings'].update({'serverUrl': ('/ueditor/controller/?%s' % urlencode(self._upload_settings))})
    if self.event_handler:
        uSettings['bindEvents'] = self.event_handler.render(editor_id)
    context = {'UEditor': uSettings, 'STATIC_URL': settings.STATIC_URL, 'STATIC_ROOT': settings.STATIC_ROOT, 'MEDIA_URL': settings.MEDIA_URL, 'MEDIA_ROOT': settings.MEDIA_ROOT}
    return mark_safe(render_to_string('ueditor.html', context))
def render(self, name, value, attrs=None, renderer=None):
    if (value is None):
        value = 
    editor_id = ('id_%s' % name.replace('-', '_'))
    uSettings = {'name': name, 'id': editor_id, 'value': value}
    if isinstance(self.command, list):
        cmdjs = 
        if isinstance(self.command, list):
            for cmd in self.command:
                cmdjs = (cmdjs + cmd.render(editor_id))
        else:
            cmdjs = self.command.render(editor_id)
        uSettings['commands'] = cmdjs
    uSettings['settings'] = self.ueditor_settings.copy()
    uSettings['settings'].update({'serverUrl': ('/ueditor/controller/?%s' % urlencode(self._upload_settings))})
    if self.event_handler:
        uSettings['bindEvents'] = self.event_handler.render(editor_id)
    context = {'UEditor': uSettings, 'STATIC_URL': settings.STATIC_URL, 'STATIC_ROOT': settings.STATIC_ROOT, 'MEDIA_URL': settings.MEDIA_URL, 'MEDIA_ROOT': settings.MEDIA_ROOT}
    return mark_safe(render_to_string('ueditor.html', context))