annex-cms 0.1.5 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a8f69a821f45830bf1fa66c26814788f517dcc38
4
- data.tar.gz: 7b3d98f589ba2c6047eca88e37d73b3924a5ea76
3
+ metadata.gz: 06eae7e782cfc394312c7c91a2303b91d7192fa5
4
+ data.tar.gz: 8493a1a55b4b26c159c58d42ecf29f58ed2bf848
5
5
  SHA512:
6
- metadata.gz: 417eb1a5aab60bb1db2974732fbfd1a0aae8ef261c18248d9cf0e59bd7d6453c9cdd04b91cdc9c717b0a01a3ad6b236916141cf76afe1a6b6fc769213b9365d6
7
- data.tar.gz: 6bb70f67f562040802917ecfb83283bd343b6ba68776c4c78929ed89ee7b74e1108f78af0702a71b3df6a9d693fb0d2b106bcba76d4fe3d2135ff32bcf704a2b
6
+ metadata.gz: 168e7ad0a45e7d4f64afd7ee6153d625e824670402a3400a39d712d9f203d9c0f190628ae21c42bb912a100295749e38a5383481e75e84e317284fbfd7f39c48
7
+ data.tar.gz: cd6cdfe13109dbcf892062b6a1c0f9db105c8758aaf2adaef8565adbc80fbef068c75ddee0207fa81d38c0f9ca7154cf85b26e8e562355e7300e9780b03be7bb
@@ -1,10 +1,13 @@
1
1
  ready = ->
2
2
  post_url = "/annex/blocks"
3
+
4
+ # cmd+s saves the editor contents
3
5
  $(window).keydown (e) ->
4
6
  $(".redactor").addClass "active" if (e.which is "17") and (e.ctrlKey or e.metaKey)
5
7
  return
6
8
 
7
- $(".redactor").click ->
9
+ # on click of .redactor, fire up a redactor instance
10
+ $("body").on "click", ".redactor", ->
8
11
  unless $(this).hasClass("redactor_editor")
9
12
  $(this).redactor
10
13
  focus: true
@@ -14,9 +17,11 @@ ready = ->
14
17
  "save"
15
18
  ]
16
19
  toolbarFixed: false
20
+ deniedTags: ['html', 'head', 'body', 'applet']
17
21
 
18
22
  return
19
23
 
24
+ # on page load, look for texarea.redactor because those will always be CMS mode
20
25
  $("textarea.redactor").redactor
21
26
  focus: true
22
27
  plugins: [
data/lib/annex/version.rb CHANGED
@@ -1,3 +1,6 @@
1
+ #
2
+ # Annex
3
+ #
1
4
  module Annex
2
- VERSION = "0.1.5"
5
+ VERSION = '0.1.7'
3
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: annex-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Clay McIlrath
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-18 00:00:00.000000000 Z
11
+ date: 2014-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails