tiptap-ruby 0.9.11 → 0.9.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/tip_tap/html_renderable.rb +11 -1
- data/lib/tip_tap/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a0a40b9c23ed1c8eeb1c3647fa388a2d56bd0daf3c98312a9f58a653dca333f
|
4
|
+
data.tar.gz: 5a87ef32fb583d65aa93755be40f183837c924144e5a94eb5ceed3c7a3046dd7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 595e2b238d23308e84794ad0f7a40ecfec32d0f080b271d7f3a0f33fba0b8f5426eb92e3e0cae1aa00354721cbdc9625821fcbc8bb943ee78a071f118e81c68a
|
7
|
+
data.tar.gz: d6f45b9c5ea6f699622906ea92ab06ee546ff131924906062c48d4813f223ac3f099659dc216fe5dce5b1f60ad2e34aca86d506080c7d0b7c793960b758bda2e
|
data/CHANGELOG.md
CHANGED
@@ -54,7 +54,17 @@ module TipTap
|
|
54
54
|
end
|
55
55
|
|
56
56
|
def to_html
|
57
|
-
content_tag(html_tag, safe_join(content.map(&:to_html)),
|
57
|
+
content_tag(html_tag, safe_join(content.map(&:to_html)), html_attributes)
|
58
|
+
end
|
59
|
+
|
60
|
+
def html_attributes
|
61
|
+
{style: inline_styles, class: html_class_name}.reject { |key, value| value.blank? }
|
62
|
+
end
|
63
|
+
|
64
|
+
def inline_styles
|
65
|
+
styles = []
|
66
|
+
styles << "text-align: #{attrs["textAlign"]};" if attrs["textAlign"]
|
67
|
+
styles.join(" ")
|
58
68
|
end
|
59
69
|
end
|
60
70
|
end
|
data/lib/tip_tap/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tiptap-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chad Wilken
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-12-
|
11
|
+
date: 2024-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionview
|