lexxy 0.1.10.beta → 0.1.11.beta
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 +4 -4
- data/app/assets/javascript/lexxy.js +212 -21
- data/app/assets/javascript/lexxy.js.br +0 -0
- data/app/assets/javascript/lexxy.js.gz +0 -0
- data/app/assets/javascript/lexxy.min.js +2 -2
- data/app/assets/javascript/lexxy.min.js.br +0 -0
- data/app/assets/javascript/lexxy.min.js.gz +0 -0
- data/lib/lexxy/rich_text_area_tag.rb +6 -7
- data/lib/lexxy/version.rb +1 -1
- metadata +2 -3
- data/app/mailers/actiontext/lexical/application_mailer.rb +0 -8
Binary file
|
Binary file
|
@@ -24,14 +24,13 @@ module Lexxy
|
|
24
24
|
# Tempoary: we need to *adaptarize* action text
|
25
25
|
def render_custom_attachments_in(value)
|
26
26
|
if html = value.try(:body_before_type_cast).presence
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
node["content"] = render_action_text_attachment(attachment).to_json
|
32
|
-
end
|
27
|
+
ActionText::Fragment.wrap(html).replace(ActionText::Attachment.tag_name) do |node|
|
28
|
+
if node["url"].blank?
|
29
|
+
attachment = ActionText::Attachment.from_node(node)
|
30
|
+
node["content"] = render_action_text_attachment(attachment).to_json
|
33
31
|
end
|
34
|
-
|
32
|
+
node
|
33
|
+
end
|
35
34
|
end
|
36
35
|
end
|
37
36
|
end
|
data/lib/lexxy/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lexxy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.11.beta
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jorge Manrubia
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-10-
|
10
|
+
date: 2025-10-10 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: rails
|
@@ -130,7 +130,6 @@ files:
|
|
130
130
|
- app/controllers/actiontext/lexical/application_controller.rb
|
131
131
|
- app/helpers/actiontext/lexical/application_helper.rb
|
132
132
|
- app/jobs/actiontext/lexical/application_job.rb
|
133
|
-
- app/mailers/actiontext/lexical/application_mailer.rb
|
134
133
|
- app/models/actiontext/lexical/application_record.rb
|
135
134
|
- app/views/layouts/actiontext/lexical/application.html.erb
|
136
135
|
- app/views/people/_person.html.erb
|