Module: CKEditor5::Rails::Context::Helpers

Included in:
Helpers
Defined in:
lib/ckeditor5/rails/context/helpers.rb

Instance Method Summary collapse

Instance Method Details

#ckeditor5_context(**config, &block) ⇒ Object



7
8
9
10
11
# File 'lib/ckeditor5/rails/context/helpers.rb', line 7

def ckeditor5_context(**config, &block)
  context_props = Props.new(config)

  tag.send(:'ckeditor-context-component', **context_props.to_attributes, &block)
end