effective_bootstrap 1.15.1 → 1.15.3

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: 5cfaf018bf0d9801faa459d991cc6831c09878bf7d7395c8eceeb247c2b8efb8
4
- data.tar.gz: 7441f4d44bf47958d9a1bb85466750f2a55031436af91c34a53f9dc9a7328898
3
+ metadata.gz: 22d160b61dcdd35b1e29bbc0e93734da1d2e40f2a39380b93d2420b1826084fb
4
+ data.tar.gz: f2f6dcbe711f28b66390b4c980fc67432003b2f4168a6f2ec4d41f1dcbd20a13
5
5
  SHA512:
6
- metadata.gz: acec024092be3e7a9ad139f88cac0651971bc3cde9e49857080b60cbfa10b3cd959be6e98002b8d103dea75b21382b4c67e644b9aadcfac0bacd078e55655dba
7
- data.tar.gz: 2c0107069432b98107335a6827239e8b3ec61fc53ff3ae0d8f0e4ece573cc2e9af53bcc360d7281231466c6e7db82244abf567f54beceb45220521ab592fab27
6
+ metadata.gz: 919cf3cb5318df8d48b470eacc1d161b680871c55952d9f3ce075bfcd4039d16b7cc3e1ced1a5de663d860fe242f8b5d1a4eaa57708131cfc49401078416f3a7
7
+ data.tar.gz: 524b400d10a2e76c173a66dd89bcec13bdb83727a8e70c9bb00b2c8b4045655d1c1610079eb9c6121eb739e347ab89324a6ae47d86074fc8831c62f9ec72a545
@@ -1,3 +1,6 @@
1
1
  // Styles for the article editor iframe body content
2
2
  // This file is included by the article editor iframe.
3
3
  body { padding-top: 0px !important; }
4
+
5
+ // For the article editor rich text field
6
+ body > .entry { background: white; }
@@ -7,10 +7,12 @@ module Effective
7
7
  def content
8
8
  return unless value.present?
9
9
 
10
- if value.start_with?('<') && value.end_with?('>')
11
- value.html_safe
10
+ value_to_s = value.to_s
11
+
12
+ if value_to_s.include?('</')
13
+ value_to_s.html_safe
12
14
  else
13
- template.simple_format(value)
15
+ template.simple_format(value_to_s)
14
16
  end
15
17
  end
16
18
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveBootstrap
2
- VERSION = '1.15.1'.freeze
2
+ VERSION = '1.15.3'.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: 1.15.1
4
+ version: 1.15.3
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: 2023-09-06 00:00:00.000000000 Z
11
+ date: 2023-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails