Class: ProsemirrorToHtml::Nodes::ImageBlock
- Inherits:
-
Node
- Object
- Node
- ProsemirrorToHtml::Nodes::ImageBlock
- Defined in:
- app/formatters/prosemirror_to_html/nodes/image_block.rb
Instance Method Summary collapse
Instance Method Details
#tag ⇒ Object
6 7 8 9 10 11 12 |
# File 'app/formatters/prosemirror_to_html/nodes/image_block.rb', line 6 def tag [ { tag: "div" } ] end |
#text ⇒ Object
14 15 16 17 18 19 |
# File 'app/formatters/prosemirror_to_html/nodes/image_block.rb', line 14 def text ApplicationController.render( Blocks::FigureComponent.new(**component_params), layout: false ) end |