Sha256: 40f7c911e9db86a6ec3a8bc1d2000ca37f87e5458d76669c715f2548eb40aa9f
Contents?: true
Size: 582 Bytes
Versions: 1
Compression:
Stored size: 582 Bytes
Contents
module AbAdmin module Views module Inputs class CkeditorInput < ::SimpleForm::Inputs::Base def input(wrapper_options=nil) unless @builder.template.instance_variable_get(:@ckeditor_loaded) @builder.template.concat @builder.template.javascript_include_tag(Ckeditor.cdn_url) @builder.template.instance_variable_set(:@ckeditor_loaded, true) end input_html_options.reverse_merge!({width: 800, height: 200}) @builder.cktext_area(attribute_name, input_html_options) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ab_admin-0.9.0 | lib/ab_admin/views/inputs/ckeditor_input.rb |