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 +4 -4
- data/app/assets/javascripts/annex/cms.js.coffee +6 -1
- data/lib/annex/version.rb +4 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06eae7e782cfc394312c7c91a2303b91d7192fa5
|
4
|
+
data.tar.gz: 8493a1a55b4b26c159c58d42ecf29f58ed2bf848
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
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.
|
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-
|
11
|
+
date: 2014-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|