Class: CKEditor5::Rails::Hooks::SimpleForm::CKEditor5Input
- Inherits:
-
SimpleForm::Inputs::Base
- Object
- SimpleForm::Inputs::Base
- CKEditor5::Rails::Hooks::SimpleForm::CKEditor5Input
- Defined in:
- lib/ckeditor5/rails/hooks/simple_form.rb
Overview
Custom input type for Simple Form integration with CKEditor 5. This class enables seamless integration with Simple Form, allowing use of CKEditor 5 as a form input with all its features and configurations.
Instance Method Summary collapse
-
#input(wrapper_options = nil) ⇒ String
Renders the CKEditor 5 input field.
Instance Method Details
#input(wrapper_options = nil) ⇒ String
Renders the CKEditor 5 input field
45 46 47 48 |
# File 'lib/ckeditor5/rails/hooks/simple_form.rb', line 45 def input( = nil) = (, ) @builder.template.ckeditor5_editor(**()) end |