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 +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/biola_wcms_components/version.rb +1 -1
- data/lib/components/presentation_data_editor.rb +4 -3
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b12b789f34d22018b2645bfa5a68fb88aaac3b7
|
4
|
+
data.tar.gz: 78891750e2d172b08690f55b8ec5c4a1a795a8cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b10589efcfb6018603eaf79db21cf63565f417a68496e435f7da9a5d8de4065089b5772ed6f37cc981aa63b13661661923589d8af2bda48da3a462044a42b59
|
7
|
+
data.tar.gz: 4ba973bfc880fd8786d709959f31c4d9ca6911a11df38a4ebf16e45dbd5765914612606da0d83407cd1cc0a589450843448964280b267d86aecb20f82b446465
|
data/CHANGELOG.md
ADDED
@@ -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')
|
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.
|
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-
|
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.
|
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
|