Class: HtmlToProsemirror::Nodes::User
- Inherits:
-
Node
- Object
- Node
- HtmlToProsemirror::Nodes::User
show all
- Defined in:
- lib/html_to_prosemirror/nodes/user.rb
Instance Attribute Summary
Attributes inherited from Node
#type, #wrapper
Instance Method Summary
collapse
Methods inherited from Node
#initialize
Instance Method Details
#data ⇒ Object
9
10
11
12
13
14
15
16
|
# File 'lib/html_to_prosemirror/nodes/user.rb', line 9
def data
{
type: "user",
attrs: {
id: @node.attribute('data-id')
}
}
end
|
#matching ⇒ Object
5
6
7
|
# File 'lib/html_to_prosemirror/nodes/user.rb', line 5
def matching
@node.name === 'user-mention'
end
|