Sha256: d55f6832297e5a85ab953fa5a20b78bc2ff545bebe2fdca393ea1b2853fc9124
Contents?: true
Size: 354 Bytes
Versions: 2
Compression:
Stored size: 354 Bytes
Contents
begin require 'ckeditor' Ckeditor::Utils.module_eval do class << self def js_replace(dom_id, options = nil) options.present? ? "lazyInitCkeditor('#{dom_id}', #{ActiveSupport::JSON.encode(options)});" : "lazyInitCkEditor('#{dom_id}');" end end end rescue LoadError => e raise unless e.message.include?('ckeditor') end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ab_admin-0.11.0 | lib/ab_admin/hooks/ckeditor_lazy.rb |
ab_admin-0.10.0 | lib/ab_admin/hooks/ckeditor_lazy.rb |