code: def editor_js_initialization(selector, **extra_settings):
      
  
      init_template = loader.get_template(
          settings.MARKDOWN_EDITOR_INIT_TEMPLATE)
  
      options = dict(
          previewParserPath=reverse('django_markdown_preview'),
          **settings.MARKDOWN_EDITOR_SETTINGS)
      options.update(extra_settings)
      ctx = dict(
          selector=selector,
          extra_settings=simplejson.dumps(options)
      )
      return init_template.render(ctx)
docs: Return script tag with initialization code.