Sha256: 43336b0b247681f90fc56f65fe87f888ce00f08cb5779160d2353a0308d6b08d

Contents?: true

Size: 476 Bytes

Versions: 6

Compression:

Stored size: 476 Bytes

Contents

$ ->
  $('textarea.wmd-input').each (i, input) ->
    attr = $(input).attr('id').split('wmd-input')[1]
    converter = new Markdown.Converter()
    Markdown.Extra.init(converter)
    help =
      handler: () ->
        window.open('http://daringfireball.net/projects/markdown/syntax')
        return false
      title: "<%= I18n.t('components.markdown_editor.help', default: 'Markdown Editing Help') %>"
    editor = new Markdown.Editor(converter, attr, help)
    editor.run()

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pagedown-bootstrap-rails-2.1.4 vendor/assets/javascripts/pagedown_init.js.coffee.erb
pagedown-bootstrap-rails-2.1.3 vendor/assets/javascripts/pagedown_init.js.coffee.erb
pagedown-bootstrap-rails-2.1.2 vendor/assets/javascripts/pagedown_init.js.coffee.erb
pagedown-bootstrap-rails-2.1.1 vendor/assets/javascripts/pagedown_init.js.coffee.erb
pagedown-bootstrap-rails-2.1.0 vendor/assets/javascripts/pagedown_init.js.coffee.erb
pagedown-bootstrap-rails-2.0.0 vendor/assets/javascripts/pagedown_init.js.coffee.erb