Sha256: 36f46376467222fa852444581de7c680e0228dc64451dd8012ca1c2440e78200
Contents?: true
Size: 1.09 KB
Versions: 1
Compression:
Stored size: 1.09 KB
Contents
require 'rails_admin/config/fields/base' module RailsAdmin module Config module Fields module Types class SimpleMDE < 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 SimpleMDE config for each instance # you can override this option with these values: https://github.com/sparksuite/simplemde-markdown-editor#configuration register_instance_option :instance_config do nil end register_instance_option :version do '1.11.2' end register_instance_option :js_location do "https://cdnjs.cloudflare.com/ajax/libs/simplemde/#{version}/simplemde.min.js" end register_instance_option :css_location do "https://cdnjs.cloudflare.com/ajax/libs/simplemde/#{version}/simplemde.min.css" end register_instance_option :partial do :form_simple_mde end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_admin-2.0.0.beta | lib/rails_admin/config/fields/types/simple_mde.rb |