Sha256: 36b235a74faa935a0296b9c190099adf4956e70de1af8e72492a456e0f1e9639

Contents?: true

Size: 405 Bytes

Versions: 8

Compression:

Stored size: 405 Bytes

Contents

# frozen_string_literal: true

require 'simple_form'

module Ckeditor
  module Hooks
    module SimpleForm
      class CkeditorInput < ::SimpleForm::Inputs::Base
        def input(_wrapper_options = nil)
          @builder.cktext_area(attribute_name, input_html_options)
        end
      end
    end
  end
end

::SimpleForm::FormBuilder.map_type :ckeditor, to: Ckeditor::Hooks::SimpleForm::CkeditorInput

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
ckeditor-5.1.3 lib/ckeditor/hooks/simple_form.rb
ckeditor-5.1.2 lib/ckeditor/hooks/simple_form.rb
ckeditor-5.1.1 lib/ckeditor/hooks/simple_form.rb
glebtv-ckeditor-4.14.1 lib/ckeditor/hooks/simple_form.rb
ckeditor-5.1.0 lib/ckeditor/hooks/simple_form.rb
glebtv-ckeditor-4.13.1 lib/ckeditor/hooks/simple_form.rb
glebtv-ckeditor-4.13.0 lib/ckeditor/hooks/simple_form.rb
ckeditor-5.0.0 lib/ckeditor/hooks/simple_form.rb