Class: TipTap::Nodes::Image
Instance Attribute Summary
#output_buffer
Attributes included from HasContent
#attrs, #content
Instance Method Summary
collapse
#to_plain_text
#to_h
#html_class_name, #html_tag, included
Methods included from HasContent
#add_content, #blank?, #each, #find_node, included, #initialize, #size
included, #type_name
Instance Method Details
#include_empty_content_in_json? ⇒ Boolean
10
11
12
|
# File 'lib/tip_tap/nodes/image.rb', line 10
def include_empty_content_in_json?
false
end
|
#src ⇒ Object
18
19
20
|
# File 'lib/tip_tap/nodes/image.rb', line 18
def src
attrs["src"]
end
|
#to_html ⇒ Object
14
15
16
|
# File 'lib/tip_tap/nodes/image.rb', line 14
def to_html
image_tag(src)
end
|