Sha256: e73c0082459fae7ab593268fadeeb0167df510947484e452fea5b48ddba406e3
Contents?: true
Size: 1.06 KB
Versions: 3
Compression:
Stored size: 1.06 KB
Contents
Trestle.configure do |config| config.tinymce.default.configure do |c| c.skin = "trestle" c.selector = "textarea.tinymce" c.branding = false c.elementpath = false c.menubar = false c.statusbar = false c.plugins = [ :lists, :link, :image, :charmap, :table, :code, :hr, :paste ] c.toolbar = [ "styleselect | bold italic underline strikethrough | subscript superscript hr | alignleft aligncenter alignright alignjustify", "bullist numlist | indent outdent | undo redo | link unlink | image charmap table | code" ] c.link_context_toolbar = true c.convert_urls = false end config.hook(:javascripts) do config = TinyMCE::Rails::Configuration.new(Trestle.config.tinymce.default.as_json.with_indifferent_access) tinymce_assets + javascript_include_tag("trestle/tinymce") + javascript_tag("Trestle.TinyMCE.default = #{config.to_javascript};") end config.form_field :tinymce, Trestle::TinyMCE::Field config.form_field :editor, Trestle::TinyMCE::Field end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
trestle-tinymce-0.3.1 | config/initializers/trestle.rb |
trestle-tinymce-0.3.0 | config/initializers/trestle.rb |
trestle-tinymce-0.2.1 | config/initializers/trestle.rb |