Class: ProsemirrorToHtml::Nodes::Image
- Inherits:
-
Node
- Object
- Node
- ProsemirrorToHtml::Nodes::Image
show all
- Defined in:
- lib/prosemirror_to_html/nodes/image.rb
Instance Method Summary
collapse
Methods inherited from Node
#initialize, #matching, #text
Instance Method Details
#self_closing ⇒ Object
16
17
18
|
# File 'lib/prosemirror_to_html/nodes/image.rb', line 16
def self_closing
true
end
|
#tag ⇒ Object
7
8
9
10
11
12
13
14
|
# File 'lib/prosemirror_to_html/nodes/image.rb', line 7
def tag
[
{
tag: self.class.tag_name,
attrs: @node.attrs
}
]
end
|