Class: CKEditor5::Rails::Hooks::Form::EditorInputBuilder
- Inherits:
-
Object
- Object
- CKEditor5::Rails::Hooks::Form::EditorInputBuilder
- Defined in:
- lib/ckeditor5/rails/hooks/form.rb
Instance Method Summary collapse
- #build_editor(method, options = {}) ⇒ Object
-
#initialize(object_name, object, template) ⇒ EditorInputBuilder
constructor
A new instance of EditorInputBuilder.
Constructor Details
#initialize(object_name, object, template) ⇒ EditorInputBuilder
Returns a new instance of EditorInputBuilder.
6 7 8 9 10 |
# File 'lib/ckeditor5/rails/hooks/form.rb', line 6 def initialize(object_name, object, template) @object_name = object_name @object = object @template = template end |
Instance Method Details
#build_editor(method, options = {}) ⇒ Object
12 13 14 15 16 |
# File 'lib/ckeditor5/rails/hooks/form.rb', line 12 def build_editor(method, = {}) = (method, ) add_validation_classes!(method, ) @template.ckeditor5_editor(**) end |