class RenderEditorjs::DefaultRenderer
Built in renderer with healthy defaults
Constants
- DEFAULT_MAPPING
- SCHEMA
Attributes
mapping[R]
Public Class Methods
new(custom_mapping = {})
click to toggle source
# File lib/render_editorjs/default_renderer.rb, line 33 def initialize(custom_mapping = {}) @mapping = DEFAULT_MAPPING.merge(custom_mapping) end
Public Instance Methods
validator(content)
click to toggle source
# File lib/render_editorjs/default_renderer.rb, line 37 def validator(content) RenderEditorjs::Validator.new(content, SCHEMA) end