lexxy 0.1.23.beta → 0.1.24.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/README.md +1 -1
- data/app/assets/javascript/lexxy.js +5551 -5297
- data/app/assets/javascript/lexxy.js.br +0 -0
- data/app/assets/javascript/lexxy.js.gz +0 -0
- data/app/assets/javascript/lexxy.js.map +1 -0
- data/app/assets/javascript/lexxy.min.js +10 -9
- data/app/assets/javascript/lexxy.min.js.br +0 -0
- data/app/assets/javascript/lexxy.min.js.gz +0 -0
- data/lib/lexxy/action_text_tag.rb +1 -1
- data/lib/lexxy/engine.rb +2 -0
- data/lib/lexxy/rich_text_area_tag.rb +1 -1
- data/lib/lexxy/version.rb +1 -1
- metadata +2 -1
|
Binary file
|
|
Binary file
|
|
@@ -10,7 +10,7 @@ module Lexxy
|
|
|
10
10
|
options = @options.stringify_keys
|
|
11
11
|
|
|
12
12
|
add_default_name_and_id(options)
|
|
13
|
-
options["input"] ||= dom_id(object, [ options["id"], :trix_input ].compact.join("_")) if object
|
|
13
|
+
options["input"] ||= @template_object.dom_id(object, [ options["id"], :trix_input ].compact.join("_")) if object
|
|
14
14
|
html_tag = @template_object.lexxy_rich_textarea_tag(options.delete("name"), options.fetch("value") { value }, options.except("value"), &@block)
|
|
15
15
|
error_wrapping(html_tag)
|
|
16
16
|
end
|
data/lib/lexxy/engine.rb
CHANGED
|
@@ -40,6 +40,8 @@ module Lexxy
|
|
|
40
40
|
|
|
41
41
|
default_allowed_attributes = Class.new.include(ActionText::ContentHelper).new.sanitizer_allowed_attributes
|
|
42
42
|
ActionText::ContentHelper.allowed_attributes = default_allowed_attributes + %w[ controls poster data-language style ]
|
|
43
|
+
|
|
44
|
+
Loofah::HTML5::SafeList::ALLOWED_CSS_FUNCTIONS << "var" # Allow CSS variables
|
|
43
45
|
end
|
|
44
46
|
end
|
|
45
47
|
|
|
@@ -21,7 +21,7 @@ module Lexxy
|
|
|
21
21
|
alias_method :lexxy_rich_text_area_tag, :lexxy_rich_textarea_tag
|
|
22
22
|
|
|
23
23
|
private
|
|
24
|
-
#
|
|
24
|
+
# Temporary: we need to *adaptarize* action text
|
|
25
25
|
def render_custom_attachments_in(value)
|
|
26
26
|
if value.respond_to?(:body)
|
|
27
27
|
if html = value.body_before_type_cast.presence
|
data/lib/lexxy/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.24.beta
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jorge Manrubia
|
|
@@ -120,6 +120,7 @@ files:
|
|
|
120
120
|
- app/assets/javascript/lexxy.js
|
|
121
121
|
- app/assets/javascript/lexxy.js.br
|
|
122
122
|
- app/assets/javascript/lexxy.js.gz
|
|
123
|
+
- app/assets/javascript/lexxy.js.map
|
|
123
124
|
- app/assets/javascript/lexxy.min.js
|
|
124
125
|
- app/assets/javascript/lexxy.min.js.br
|
|
125
126
|
- app/assets/javascript/lexxy.min.js.gz
|