editor_js 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/editor_js/blocks/quote_block.rb +3 -2
- data/lib/editor_js/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1de09c85ab73ff0164d695a0b170165a5a6b7bdf35502ff3ff3605bb90afae9a
|
4
|
+
data.tar.gz: 56f37b0e08caccc9dbc916a50be42744e0de254d02e2e18d9f0997e14e1f3009
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77bd3498bc09f45f2051582752c943df50b43e4bce3bc254ee9f3f320d0766a9832b67feefdbf87ffcb2eedc16bdac2e8ec894b04eaf1e01b339e59adf136fab
|
7
|
+
data.tar.gz: 86b780237ff28a8fa9d127e0375abc0b4e19a02145a02260b571908ec4ec4347e29c274df67c6e691b47d4cc4bd193be0b62a4e5ffab6f2450988350bd7ad717
|
data/Gemfile.lock
CHANGED
@@ -34,7 +34,8 @@ module EditorJs
|
|
34
34
|
'i' => nil,
|
35
35
|
'a' => ['href'],
|
36
36
|
'mark' => ['class'],
|
37
|
-
'code' => ['class']
|
37
|
+
'code' => ['class'],
|
38
|
+
'br' => nil
|
38
39
|
}
|
39
40
|
|
40
41
|
%w(text caption).each do |key|
|
@@ -42,7 +43,7 @@ module EditorJs
|
|
42
43
|
data[key],
|
43
44
|
elements: safe_tags.keys,
|
44
45
|
attributes: safe_tags.select {|k, v| v},
|
45
|
-
remove_contents:
|
46
|
+
remove_contents: false
|
46
47
|
)
|
47
48
|
end
|
48
49
|
data['alignment'] = Sanitize.fragment(data['alignment'], remove_contents: true)
|
data/lib/editor_js/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: editor_js
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- xiaohui
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionview
|