biola_wcms_components 0.14.0 → 0.15.0

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: 06aa13966e7044b0d2955fd39cd17d5e8c571879
4
- data.tar.gz: 041019fb232320f803194f084ea074018dbd1f85
3
+ metadata.gz: 6b12b789f34d22018b2645bfa5a68fb88aaac3b7
4
+ data.tar.gz: 78891750e2d172b08690f55b8ec5c4a1a795a8cd
5
5
  SHA512:
6
- metadata.gz: b9b8acf764cdec4e1876a0e60e26ee951b7be577bca5d1be64199cdd9724984bff82f9f7d31a268382df267857cf794064c5a28a3e0bafa56c71c029ff48af86
7
- data.tar.gz: afed75bddf2d1798de19967dbc4c826cc5d57ac1d0c595daa52574f7d45b06b4057ed580a8deccce7e226b5de29c99cf6f28cfb450f9e1ce2f47fa9f5337d948
6
+ metadata.gz: 0b10589efcfb6018603eaf79db21cf63565f417a68496e435f7da9a5d8de4065089b5772ed6f37cc981aa63b13661661923589d8af2bda48da3a462044a42b59
7
+ data.tar.gz: 4ba973bfc880fd8786d709959f31c4d9ca6911a11df38a4ebf16e45dbd5765914612606da0d83407cd1cc0a589450843448964280b267d86aecb20f82b446465
@@ -0,0 +1,9 @@
1
+ # CHANGELOG
2
+
3
+ ### Master (unreleased)
4
+
5
+ ### 0.15.0
6
+
7
+ * Updated presentation data redactor editors
8
+ * Showing formatting options by default
9
+ * Showing html button by default for everyone
@@ -1,3 +1,3 @@
1
1
  module BiolaWcmsComponents
2
- VERSION = "0.14.0"
2
+ VERSION = "0.15.0"
3
3
  end
@@ -171,7 +171,8 @@ class PresentationDataEditor
171
171
  {
172
172
  class: "redactor #{attribute[:class]}",
173
173
  id: attribute_id(parent_keys, attribute[:name]),
174
- 'data-buttons' => editor_buttons(attribute)
174
+ 'data-buttons' => editor_buttons(attribute),
175
+ 'data-formatting' => 'p h1 h2 h3 h4 h5 quote'
175
176
  }
176
177
  )
177
178
  end
@@ -227,9 +228,9 @@ class PresentationDataEditor
227
228
  end
228
229
 
229
230
  def editor_buttons(attribute)
230
- default_buttons = %w(bold italic unorderedlist orderedlist link)
231
+ default_buttons = %w(formatting bold italic unorderedlist orderedlist link)
231
232
  buttons = attribute[:editor_buttons].to_s.split(' ').presence || default_buttons
232
- buttons.push('html') if !buttons.include?('html') && view.current_user.try(:admin?)
233
+ buttons.push('html') if !buttons.include?('html')
233
234
  buttons.push('fullscreen') unless buttons.include?('fullscreen')
234
235
  buttons.join(' ')
235
236
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: biola_wcms_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Hall
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-09 00:00:00.000000000 Z
11
+ date: 2015-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ace-rails-ap
@@ -159,6 +159,7 @@ extra_rdoc_files: []
159
159
  files:
160
160
  - ".gitignore"
161
161
  - ".ruby-version"
162
+ - CHANGELOG.md
162
163
  - Gemfile
163
164
  - README.md
164
165
  - Rakefile
@@ -253,7 +254,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
253
254
  version: '0'
254
255
  requirements: []
255
256
  rubyforge_project:
256
- rubygems_version: 2.2.2
257
+ rubygems_version: 2.4.6
257
258
  signing_key:
258
259
  specification_version: 4
259
260
  summary: Reusable UX components for use in or WCMS projects