class HtmlToProsemirror::Nodes::User
Public Instance Methods
data()
click to toggle source
# File lib/html_to_prosemirror/nodes/user.rb, line 9 def data { type: "user", attrs: { id: @node.attribute('data-id') } } end
matching()
click to toggle source
# File lib/html_to_prosemirror/nodes/user.rb, line 5 def matching @node.name === 'user-mention' end