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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 971be8f7a5bcc50f90032ad0d28e31e1501d578240aa433c75eb9a22e214c023
4
- data.tar.gz: c251c0c3f39a2b1159e3af404dd0f84c2b9a393eb966aa2827f0c9431b31cc30
3
+ metadata.gz: 1de09c85ab73ff0164d695a0b170165a5a6b7bdf35502ff3ff3605bb90afae9a
4
+ data.tar.gz: 56f37b0e08caccc9dbc916a50be42744e0de254d02e2e18d9f0997e14e1f3009
5
5
  SHA512:
6
- metadata.gz: 274b5f08751e2c5432db9eb6c74c85260a580dfcdab3747048f35f99b399b66f12c3e3936fc29e0256518ec6505a68ebad862066699ac69fe12fb5df5fd95e52
7
- data.tar.gz: 13cd21c912b10d91de9ac2558f98a41049b6e326e2bad5f4f705fb7e7968cb55831144d74d02637dfa3bf9a664ae143d39fd8d67c023a268bf83cc1004faa4d7
6
+ metadata.gz: 77bd3498bc09f45f2051582752c943df50b43e4bce3bc254ee9f3f320d0766a9832b67feefdbf87ffcb2eedc16bdac2e8ec894b04eaf1e01b339e59adf136fab
7
+ data.tar.gz: 86b780237ff28a8fa9d127e0375abc0b4e19a02145a02260b571908ec4ec4347e29c274df67c6e691b47d4cc4bd193be0b62a4e5ffab6f2450988350bd7ad717
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- editor_js (0.2.4)
4
+ editor_js (0.2.5)
5
5
  actionview (>= 4)
6
6
  activesupport (>= 4)
7
7
  coderay (~> 1.1, >= 1.1.2)
@@ -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: true
46
+ remove_contents: false
46
47
  )
47
48
  end
48
49
  data['alignment'] = Sanitize.fragment(data['alignment'], remove_contents: true)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EditorJs
4
- VERSION = '0.2.4'
4
+ VERSION = '0.2.5'
5
5
  end
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
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-01-03 00:00:00.000000000 Z
11
+ date: 2020-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionview