class HtmlToProsemirror::Nodes::Text
Public Instance Methods
data()
click to toggle source
# File lib/html_to_prosemirror/nodes/text.rb, line 9 def data @text = @node.content { type: "text", text: @text } end
matching()
click to toggle source
# File lib/html_to_prosemirror/nodes/text.rb, line 5 def matching @node.name === 'text' end