biola_wcms_components 0.8.0 → 0.9.0

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: 25605e62a0cc1cf6df0558fad0fb1fbae5728718
4
- data.tar.gz: 65541e40acd9e730da2af47110b05b11a8485d8d
3
+ metadata.gz: a54c4e2b5e76507a454480adeae8660fb4ff2401
4
+ data.tar.gz: 2ff487a9d3ac36feca3b6446cf9022642b767885
5
5
  SHA512:
6
- metadata.gz: d7d07653a8cf6d4de761fb054ec16b850af481eb0d43546a89623bf9d2a2ea4aa840729b3dd45085b3412a54bf5085dac81301f7486ddf373f41202a466b93cc
7
- data.tar.gz: 09a6a6c5ee3e14ffdc137804cb1c95d2443474ce21a29ab343b439b2c2f022d8362c60c096822f2a12c30a0ad6bd91cea58c5e1980ed01d606cb5f765b8a9803
6
+ metadata.gz: bdc159c5d579df7aa6b2363d7b7c7ab47e0c45fc393d9e12248289c9081decf0759413a3eec4c1a1a8815cfc1981f43a952b4a591d3c986e8ac8cb3458f40b79
7
+ data.tar.gz: e4067b246938806b4923640cbbe34afdb99c00622ec28ab4a6952229baa3775487e8214df2a408216e72abb7cbb42112112d945799ea47cfae4c726f9d4c4c07
@@ -12,6 +12,8 @@
12
12
  #
13
13
  #= require redactor
14
14
  #= require redactor_fullscreen
15
+ #= require redactor_table
16
+ #= require redactor_video
15
17
  #
16
18
  #= require chronic_ping
17
19
  #
@@ -4,6 +4,7 @@ setupRedactor = (obj) ->
4
4
  minHeight: 200
5
5
  allowedTags: ['p', 'br']
6
6
  buttons: []
7
+ plugins: []
7
8
  toolbarFixed: false
8
9
 
9
10
  if fileUploader.uploaders && fileUploader.uploaders.embedded_image
@@ -23,7 +24,11 @@ setupRedactor = (obj) ->
23
24
  if options.allowedTags.indexOf('a') >= 0
24
25
  options.convertLinks = true;
25
26
  if options.buttons.indexOf('fullscreen') >= 0
26
- options.plugins = ['fullscreen']
27
+ options.plugins.push 'fullscreen'
28
+ if options.buttons.indexOf('table') >= 0
29
+ options.plugins.push 'table'
30
+ if options.buttons.indexOf('video') >= 0
31
+ options.plugins.push 'video'
27
32
 
28
33
  # Uniq all arrays
29
34
  options.buttons = $.unique(options.buttons)
@@ -19,7 +19,7 @@ ruby:
19
19
  add_buttons ||= [] # adds to defaults
20
20
  remove_buttons ||= [] # removes from default
21
21
  buttons = Array(buttons) + Array(add_buttons) - Array(remove_buttons)
22
- buttons << 'html' if current_user.try(:admin?)
22
+ buttons << 'html' if current_user.try(:admin?) || current_user.try(:developer?) || current_user.try(:designer?)
23
23
  buttons << 'fullscreen'
24
24
 
25
25
  formatting ||= []
@@ -1,3 +1,3 @@
1
1
  module BiolaWcmsComponents
2
- VERSION = "0.8.0"
2
+ VERSION = "0.9.0"
3
3
  end