Sha256: 93f8caccd3714217378787eba5cc4771a66eec8f0f33058ee5333b10bf34f274

Contents?: true

Size: 623 Bytes

Versions: 1

Compression:

Stored size: 623 Bytes

Contents

ready = ->
  post_url = "/annex/blocks"
  $(window).keydown (e) ->
    $(".redactor").addClass "active"  if (e.which is "17") and (e.ctrlKey or e.metaKey)
    return

  $(".redactor").click ->
    unless $(this).hasClass("redactor_editor")
      $(this).redactor
        focus: true
        plugins: [
          "clips"
          "fullscreen"
          "save"
        ]
        toolbarFixed: false

    return

  $("textarea.redactor").redactor
    focus: true
    plugins: [
      "clips"
      "fullscreen"
      "save"
    ]
    toolbarFixed: false

  return

$(document).ready(ready)
$(document).on('page:load', ready)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
annex-cms-0.1.5 app/assets/javascripts/annex/cms.js.coffee