storyblok-richtext-renderer 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/storyblok/richtext/html_renderer.rb +1 -1
- data/lib/storyblok/richtext/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5fde7858d8ae51cd43a128f5912421b4e7ffb0d8bc51013c9e142d9400d0885f
|
4
|
+
data.tar.gz: 5ee6a07e5b4c27dd06aa628ff461c1679b3e74a3acd250ecbefc93c9834643c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 000f0080b59c4f29b55dc5d629612df2d8c5ae5e6c01a273cddd7573b7b43b9023fec0a7024c4aad4c13771790f34f70bea19e32baad9a2a0b17e94c6f32aa08
|
7
|
+
data.tar.gz: 3fa6b77ce266c573a3211746f7113a4dabac3d443f9b7d179310ebb476a1f17759871546c25a7a118bbee2bb44f523e5008bf2e0b5a76e30ed4ddc9a72100671
|
data/README.md
CHANGED
@@ -6,13 +6,13 @@ This is Storyblok's rendering service to render html from the data of the richte
|
|
6
6
|
|
7
7
|
Add the gem to your Gemfile
|
8
8
|
|
9
|
-
```
|
9
|
+
```ruby
|
10
10
|
gem 'storyblok-richtext-renderer'
|
11
11
|
```
|
12
12
|
|
13
13
|
### Rendering a richtext field
|
14
14
|
|
15
|
-
```
|
15
|
+
```ruby
|
16
16
|
require 'storyblok/richtext'
|
17
17
|
renderer = Storyblok::Richtext::HtmlRenderer.new
|
18
18
|
renderer.render({'type' => 'doc', 'content' => [{'type' => 'paragraph', 'content' => [{'text' => 'Good', 'type' => 'text'}]}]})
|
@@ -53,7 +53,7 @@ module Storyblok
|
|
53
53
|
end
|
54
54
|
|
55
55
|
def set_component_resolver(component_resolver)
|
56
|
-
Storyblok::Richtext::Nodes::Blok.define_method :component_resolver, component_resolver
|
56
|
+
Storyblok::Richtext::Nodes::Blok.send :define_method, :component_resolver, component_resolver
|
57
57
|
end
|
58
58
|
|
59
59
|
def add_node(node)
|