Sha256: 4b84493a46060df85c9269ca89b6e3e5f7df0567ef530d538def895f8ebdba98
Contents?: true
Size: 399 Bytes
Versions: 2
Compression:
Stored size: 399 Bytes
Contents
module Trestle module TinyMCE class Configuration include Configurable include Configurable::Open def to_javascript options.map { |name, configuration| config = ::TinyMCE::Rails::Configuration.new(configuration.as_json.with_indifferent_access) "Trestle.TinyMCE.#{name} = #{config.to_javascript};" }.join("\n") end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
trestle-tinymce-0.4.0 | lib/trestle/tinymce/configuration.rb |
trestle-tinymce-0.4.0.pre2 | lib/trestle/tinymce/configuration.rb |