Module: EditorJs

Defined in:
lib/editor_js.rb,
lib/editor_js/version.rb,
lib/editor_js/document.rb,
lib/editor_js/blocks/base.rb,
lib/editor_js/blocks/code_block.rb,
lib/editor_js/blocks/list_block.rb,
lib/editor_js/blocks/embed_block.rb,
lib/editor_js/blocks/image_block.rb,
lib/editor_js/blocks/quote_block.rb,
lib/editor_js/blocks/table_block.rb,
lib/editor_js/blocks/header_block.rb,
lib/editor_js/blocks/warning_block.rb,
lib/editor_js/blocks/attaches_block.rb,
lib/editor_js/blocks/markdown_block.rb,
lib/editor_js/blocks/checklist_block.rb,
lib/editor_js/blocks/delimiter_block.rb,
lib/editor_js/blocks/paragraph_block.rb,
lib/editor_js/blocks/qiniu_image_block.rb

Defined Under Namespace

Modules: Blocks Classes: Document

Constant Summary collapse

VERSION =
'0.4.0'

Class Method Summary collapse

Class Method Details

.css_name_prefixObject

css name prefix of blocks



35
36
37
# File 'lib/editor_js.rb', line 35

def css_name_prefix
  @css_name_prefix ||= 'editor_js--'
end

.css_name_prefix=(prefix) ⇒ Object



39
40
41
# File 'lib/editor_js.rb', line 39

def css_name_prefix=(prefix)
  @css_name_prefix = prefix
end