lexxy 0.1.6.beta → 0.1.8.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 +2 -4
- data/app/assets/javascript/lexxy.js +4482 -4537
- 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 +3 -3
- data/app/assets/javascript/lexxy.min.js.br +0 -0
- data/app/assets/javascript/lexxy.min.js.gz +0 -0
- data/app/assets/stylesheets/lexxy-content.css +12 -0
- data/app/assets/stylesheets/lexxy-editor.css +6 -1
- data/lib/lexxy/action_text_tag.rb +2 -2
- data/lib/lexxy/form_helper.rb +1 -1
- data/lib/lexxy/version.rb +1 -1
- data/lib/lexxy.rb +4 -0
- metadata +2 -2
Binary file
|
Binary file
|
@@ -37,6 +37,18 @@
|
|
37
37
|
}
|
38
38
|
}
|
39
39
|
|
40
|
+
.lexxy-content__italic {
|
41
|
+
font-style: italic;
|
42
|
+
}
|
43
|
+
|
44
|
+
.lexxy-content__bold {
|
45
|
+
font-weight: bold;
|
46
|
+
}
|
47
|
+
|
48
|
+
.lexxy-content__underline {
|
49
|
+
text-decoration: underline;
|
50
|
+
}
|
51
|
+
|
40
52
|
blockquote {
|
41
53
|
border-inline-start: 0.25em solid var(--lexxy-color-ink-lighter);
|
42
54
|
font-style: italic;
|
@@ -2,6 +2,11 @@
|
|
2
2
|
|
3
3
|
:where(lexxy-editor) {
|
4
4
|
--lexxy-editor-padding: 1ch;
|
5
|
+
--lexxy-editor-rows: 8lh;
|
6
|
+
@supports (min-block-size: attr(rows lh)) {
|
7
|
+
--lexxy-editor-rows: attr(rows lh, 8lh);
|
8
|
+
}
|
9
|
+
|
5
10
|
--lexxy-toolbar-gap: 2px;
|
6
11
|
|
7
12
|
border: 1px solid var(--lexxy-color-ink-lighter);
|
@@ -63,7 +68,7 @@
|
|
63
68
|
}
|
64
69
|
|
65
70
|
:where(.lexxy-editor__content) {
|
66
|
-
min-block-size:
|
71
|
+
min-block-size: var(--lexxy-editor-rows);
|
67
72
|
outline: 0;
|
68
73
|
padding: var(--lexxy-editor-padding);
|
69
74
|
}
|
@@ -6,12 +6,12 @@ module Lexxy
|
|
6
6
|
@block = block
|
7
7
|
end
|
8
8
|
|
9
|
-
def
|
9
|
+
def lexxy_render
|
10
10
|
options = @options.stringify_keys
|
11
11
|
|
12
12
|
add_default_name_and_id(options)
|
13
13
|
options["input"] ||= dom_id(object, [ options["id"], :trix_input ].compact.join("_")) if object
|
14
|
-
html_tag = @template_object.
|
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
|
17
17
|
end
|
data/lib/lexxy/form_helper.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module Lexxy
|
2
2
|
module FormHelper
|
3
3
|
def lexxy_rich_textarea(object_name, method, options = {}, &block)
|
4
|
-
ActionView::Helpers::Tags::ActionText.new(object_name, method, self, options, &block).
|
4
|
+
ActionView::Helpers::Tags::ActionText.new(object_name, method, self, options, &block).lexxy_render
|
5
5
|
end
|
6
6
|
|
7
7
|
alias_method :lexxy_rich_text_area, :lexxy_rich_textarea
|
data/lib/lexxy/version.rb
CHANGED
data/lib/lexxy.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.8.beta
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jorge Manrubia
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-09-
|
10
|
+
date: 2025-09-20 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: rails
|