effective_bootstrap 0.11.10 → 0.11.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f42356959b3419c9a5a3b3a275e08a57959b8578288ae696190954f2111c9fd0
|
4
|
+
data.tar.gz: 73fc23569c052504fb1ebd13f5864798762d6c0d3b1ee4a0a70f34c77b9b2f74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0bbfaa7d19172a52efb5b10a0ac79b73c156abd72c9caff68dfcfeb9190f60c2b86a79b4b2bfd110d36f3589daa9b68bb60546b1345c1678927d311641813a02
|
7
|
+
data.tar.gz: 0566fd5748eb88c7ae106dd4763531f222553347d351cb4e2581a1c61fa051d8a66ee01674bbccf92b8124f8a52eae22aa1a16cfd2b4dde6980241d02b0cb210
|
@@ -5,17 +5,17 @@ module EffectiveArticleEditorHelper
|
|
5
5
|
def render_article_editor_action_text_content(content)
|
6
6
|
raise('expected content to be an ActionText content') unless content.kind_of?(ActionText::Content)
|
7
7
|
|
8
|
-
rendered =
|
8
|
+
rendered = content.to_html
|
9
9
|
|
10
10
|
if rendered.include?('effective-article-editor')
|
11
11
|
doc = Nokogiri::HTML(rendered)
|
12
12
|
doc.search('action-text-attachment').each { |fragment| fragment.remove }
|
13
13
|
|
14
14
|
# Filter out <html><body>\n and \n</body></html>
|
15
|
-
rendered = doc.inner_html.to_s[13..-16]
|
15
|
+
rendered = doc.inner_html.to_s[13..-16]
|
16
16
|
end
|
17
17
|
|
18
|
-
rendered
|
18
|
+
rendered.html_safe
|
19
19
|
end
|
20
20
|
|
21
21
|
end
|