Module: TipTap

Defined in:
lib/tip_tap/node.rb,
lib/tip_tap.rb,
lib/tip_tap/version.rb,
lib/tip_tap/document.rb,
lib/tip_tap/registry.rb,
lib/tip_tap/nodes/text.rb,
lib/tip_tap/has_content.rb,
lib/tip_tap/nodes/image.rb,
lib/tip_tap/nodes/table.rb,
lib/tip_tap/registerable.rb,
lib/tip_tap/nodes/heading.rb,
lib/tip_tap/html_renderable.rb,
lib/tip_tap/json_renderable.rb,
lib/tip_tap/nodes/codeblock.rb,
lib/tip_tap/nodes/list_item.rb,
lib/tip_tap/nodes/paragraph.rb,
lib/tip_tap/nodes/table_row.rb,
lib/tip_tap/nodes/task_item.rb,
lib/tip_tap/nodes/task_list.rb,
lib/tip_tap/nodes/blockquote.rb,
lib/tip_tap/nodes/hard_break.rb,
lib/tip_tap/nodes/table_cell.rb,
lib/tip_tap/nodes/bullet_list.rb,
lib/tip_tap/nodes/ordered_list.rb,
lib/tip_tap/nodes/table_header.rb,
lib/tip_tap/nodes/horizontal_rule.rb,
lib/tip_tap/plain_text_renderable.rb

Overview

This is the registry for all the nodes that TipTap knows about. It’s a simple hash that maps TipTap JS node names to Ruby classes. Registering a new node is as simple as: TipTap::Registry.register(‘myNode’, MyNode)

Defined Under Namespace

Modules: HasContent, HtmlRenderable, JsonRenderable, Nodes, PlainTextRenderable, Registerable Classes: Document, Error, Node, Registry

Constant Summary collapse

VERSION =
"0.9.10"

Class Method Summary collapse

Class Method Details

.node_for(name) ⇒ Object



27
28
29
# File 'lib/tip_tap.rb', line 27

def self.node_for(name)
  Registry.node_for(name)
end