lexxy 0.1.6.beta → 0.1.9.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.
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: 8lh;
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 render
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.rich_textarea_tag(options.delete("name"), options.fetch("value") { value }, options.except("value"), &@block)
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
@@ -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).render
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
@@ -1,3 +1,3 @@
1
1
  module Lexxy
2
- VERSION = "0.1.6.beta"
2
+ VERSION = "0.1.9.beta"
3
3
  end
data/lib/lexxy.rb CHANGED
@@ -17,5 +17,9 @@ module Lexxy
17
17
  alias_method :rich_textarea, :lexxy_rich_textarea
18
18
  alias_method :rich_text_area, :lexxy_rich_textarea
19
19
  end
20
+
21
+ ActionView::Helpers::Tags::ActionText.module_eval do
22
+ alias_method :render, :lexxy_render
23
+ end
20
24
  end
21
25
  end
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.6.beta
4
+ version: 0.1.9.beta
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jorge Manrubia
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-09-11 00:00:00.000000000 Z
10
+ date: 2025-09-30 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rails