Sha256: 46144456ce55e7638b818f0dfe1b245d44f1b0ceb2c861662600921e615b80ea
Contents?: true
Size: 1.17 KB
Versions: 10
Compression:
Stored size: 1.17 KB
Contents
require 'rails_admin/config/fields/base' module RailsAdmin module Config module Fields module Types class Wysihtml5 < RailsAdmin::Config::Fields::Types::Text # Register field type for the type loader RailsAdmin::Config::Fields::Types.register(self) # If you want to have a different toolbar configuration for wysihtml5 # you can use a Ruby hash to configure these options: # https://github.com/jhollingworth/bootstrap-wysihtml5/#advanced register_instance_option :config_options do nil end register_instance_option :css_location do ActionController::Base.helpers.asset_path('bootstrap-wysihtml5/index.css') end register_instance_option :js_location do ActionController::Base.helpers.asset_path('bootstrap-wysihtml5/index.js') end register_instance_option :partial do :form_wysihtml5 end [:config_options, :css_location, :js_location].each do |key| register_deprecated_instance_option :"bootstrap_wysihtml5_#{key}", key end end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems