annex-cms 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 66347c32dd4e2bed09cb669abdcf34bf935f18ac
4
- data.tar.gz: bfba86f133130ee266ed7c7d9258cc98a3c802b8
3
+ metadata.gz: 877d06ed6817c971605654de6f16911bfe458d6a
4
+ data.tar.gz: 1435be3dd00429a3fbc98ca9ef542d568202cd70
5
5
  SHA512:
6
- metadata.gz: d4ad383990c1b6ca0a1b87e92ff94f08512c828f91632f93f7c69ebcf5d0146733735011dd40b53075bc4a3b07e6fd6ee2a76bb38428b040a878c9a1e85fb73e
7
- data.tar.gz: d5d98e38fa300f82935dc8a5c5a314fbed0b5c87a8400491fc2f5f065e459cd4e14063a179bef0f316740f500ebf09815879f97effd4e15fdbbc3f75d1266c83
6
+ metadata.gz: dd8d218d3943b2b7ff582bdff7b08e0ce5a1217bc3d4895bda714d07c74be7d3b9ce13d936f057a2805a4238ab53010d858569e3e7296074d17ef4917c3f78af
7
+ data.tar.gz: 61e66f183409fabb5b576b79465fa6d1b19b1fd08b0c911085f97da6008f86efa777d11dfdbe3210c2f40774a4f4d9346fa59f1022dad300eb1a11ab7e232b99
@@ -40,35 +40,34 @@ ready = ->
40
40
  return
41
41
 
42
42
  # on page load, look for texarea.redactor because those will always be CMS mode
43
- $("textarea.redactor").redactor
44
- focus: true
45
- buttonSource: true
46
- plugins: [
47
- "definedlinks"
48
- "fontsize"
49
- "fontcolor"
50
- "table"
51
- "filemanager"
52
- "imagemanager"
53
- "video"
54
- "clips"
55
- "fullscreen"
56
- "save"
57
- ]
58
- toolbarFixed: true
59
- formatting: ['p', 'blockquote', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6']
60
- formattingAdd: [
61
- {
62
- tag: 'pre'
63
- title: 'pre'
64
- }
65
- {
66
- tag: 'code'
67
- title: 'code'
68
- }
69
- ]
70
-
71
- return
43
+ if $('textarea.redactor').length > 0
44
+ $("textarea.redactor").redactor
45
+ focus: true
46
+ buttonSource: true
47
+ plugins: [
48
+ "definedlinks"
49
+ "fontsize"
50
+ "fontcolor"
51
+ "table"
52
+ "filemanager"
53
+ "imagemanager"
54
+ "video"
55
+ "clips"
56
+ "fullscreen"
57
+ "save"
58
+ ]
59
+ toolbarFixed: true
60
+ formatting: ['p', 'blockquote', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6']
61
+ formattingAdd: [
62
+ {
63
+ tag: 'pre'
64
+ title: 'pre'
65
+ }
66
+ {
67
+ tag: 'code'
68
+ title: 'code'
69
+ }
70
+ ]
72
71
 
73
72
  $(document).ready(ready)
74
73
  $(document).on('page:load', ready)
data/lib/annex/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
  # Annex
3
3
  #
4
4
  module Annex
5
- VERSION = '0.3.4'
5
+ VERSION = '0.3.5'
6
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.3.4
4
+ version: 0.3.5
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-19 00:00:00.000000000 Z
11
+ date: 2014-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails