effective_bootstrap 0.11.15 → 0.11.17

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
  SHA256:
3
- metadata.gz: 135872e85367ae5e9997d208b8f7761af52f58c9372c75e619b0ad2fb07c9b7e
4
- data.tar.gz: 204a7bdee71fddc4008f6667fa484b9ba3b40dbde7906f605b705a8a0ac89bae
3
+ metadata.gz: 209e44db0eafd9e67b747a04c46b3d5a336db8a183d8875abd9a017377edac4b
4
+ data.tar.gz: 7ed083b2fbb26c2dcd9c9278ab20052da48b204310908ea35dd857baf40fa15e
5
5
  SHA512:
6
- metadata.gz: e7a8fddb1d2d2811b2781a5154e0c5e0ea656a5af12b64e03b24b6034393eafbb4b46d6ec08b1e1080ad1af36fc51a95c053cb36a05c9d0c4d14f1a0546d1ce3
7
- data.tar.gz: e73fd06ebaccc00dc9613bde686a2aa2b3b672d25897e11afa40cc3e5e39aeb63da0ba3705d6217df7496610dc7efd495bafae1d098b030796f9ddbe6b669800
6
+ metadata.gz: 8e5bf5a9fb4a10ee5fb538cad64df9b405ac6499ff930003492cd84e058afd1ef804917c0b2f163cdae257434f57f9021652be6f2e8c06760f50b69eee30d301
7
+ data.tar.gz: 5f98473a059d216a2c6f75de132ed8c663dbb62127778ba4a5942e28181fbfe604428f6fd59b38d4ce845885f1be4d85785dccbb5eec61746acf44ac17a6e79a
@@ -16,8 +16,9 @@ effectiveMatch = (params, data) ->
16
16
  term = params.term.toLowerCase()
17
17
 
18
18
  # The text value
19
- text = $(data.element.getAttribute('data-html')).text()
20
- text = $(data.text).text() if text.length == 0
19
+ text = ''
20
+ try text = $(data.element.getAttribute('data-html')).text()
21
+ try text = $(data.text).text() if text.length == 0
21
22
  text = data.text if text.length == 0
22
23
 
23
24
  if(text.length > 0)
@@ -30,8 +31,9 @@ effectiveMatch = (params, data) ->
30
31
 
31
32
  $.each(data.children, (idx, child) ->
32
33
  # Text value
33
- text = $(child.element.getAttribute('data-html')).text()
34
- text = $(data.text).text() if text.length == 0
34
+ text = ''
35
+ try text = $(child.element.getAttribute('data-html')).text()
36
+ try text = $(data.text).text() if text.length == 0
35
37
  text = data.text if text.length == 0
36
38
 
37
39
  filteredChildren.push(child) if text.toLowerCase().indexOf(term) > -1
@@ -102,6 +102,7 @@ module Effective
102
102
  },
103
103
  outset: false, # tricky to design around
104
104
  plugins: ['blockcode', 'carousel', 'cellcolor', 'collapse', 'filelink', 'imageposition', 'imageresize', 'inlineformat', 'listitem', 'makebutton', 'removeformat', 'reorder', 'style'],
105
+
105
106
  quote: {
106
107
  template: '<blockquote class="blockquote text-center"><p class="mb-0"><strong>A well-known quote, contained in a blockquote element.</strong></p></blockquote>'
107
108
  },
@@ -112,7 +113,11 @@ module Effective
112
113
  'small': { title: 'Small', classname: 'table-sm' },
113
114
  'striped': { title: 'Striped', classname: 'table-striped' },
114
115
  }
115
- }
116
+ },
117
+ topbar: {
118
+ undoredo: true,
119
+ shortcuts: true
120
+ },
116
121
  }
117
122
  end
118
123
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveBootstrap
2
- VERSION = '0.11.15'.freeze
2
+ VERSION = '0.11.17'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.15
4
+ version: 0.11.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-07 00:00:00.000000000 Z
11
+ date: 2022-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails