Sha256: 5cacd8f1b1de8badbebe46f5981f0c5187ac7465e13ce820329084ffb67fab53
Contents?: true
Size: 1.02 KB
Versions: 1
Compression:
Stored size: 1.02 KB
Contents
module Caboose module ApplicationHelper def caboose_tinymce return " <script src='//tinymce.cachefly.net/4.0/tinymce.min.js'></script> <script type='text/javascript'> //<![CDATA[ tinyMCE.init({ selector: 'textarea.tinymce', width: '800px', height: '300px', convert_urls: false, plugins: 'advlist autolink lists link image charmap print preview hr anchor pagebreak searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking table contextmenu directionality emoticons template paste textcolor caboose', toolbar1: 'caboose_save caboose_cancel | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image', image_advtab: true, external_plugins: { 'caboose': '//#{Caboose::CDN_DOMAIN}/assets/tinymce/plugins/caboose/plugin.js' }, setup: function(editor) { var control = ModelBinder.tinymce_control(editor.id); editor.on('keyup', function(e) { control.tinymce_change(editor); }); } }); //]]> </script>\n" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
caboose-cms-0.4.96 | app/helpers/caboose/application_helper.rb |