Sha256: 934fb1eef848db1f478f6ce5621533befbfa9cbb78c9d26e943585eaa0cf58af

Contents?: true

Size: 292 Bytes

Versions: 3

Compression:

Stored size: 292 Bytes

Contents

module HtmlToProsemirror
  module Nodes
    class User < Node

      def matching
        @node.name === 'user-mention'
      end

      def data
        {
          type: "user",
          attrs: {
            id: @node.attribute('data-id')
          }
        }
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
html_to_prosemirror-0.2.0 lib/html_to_prosemirror/nodes/user.rb
html_to_prosemirror-0.1.1 lib/html_to_prosemirror/nodes/user.rb
html_to_prosemirror-0.1.0 lib/html_to_prosemirror/nodes/user.rb