Class: ProsemirrorToHtml::Nodes::ImageBlock

Inherits:
Node
  • Object
show all
Defined in:
app/formatters/prosemirror_to_html/nodes/image_block.rb

Instance Method Summary collapse

Instance Method Details

#tagObject



6
7
8
9
10
11
12
# File 'app/formatters/prosemirror_to_html/nodes/image_block.rb', line 6

def tag
  [
    {
      tag: "div"
    }
  ]
end

#textObject



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