Sha256: dae0f64d4e6067ff9feba454df90a8690bd304d1ca1ac3bffe28e01715d9f2d5
Contents?: true
Size: 1.19 KB
Versions: 162
Compression:
Stored size: 1.19 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 forecolor backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image', image_advtab: true, external_plugins: { 'caboose': '#{Caboose::cdn_domain == '/' ? '' : "//#{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 def parent_categories Caboose::Category.find(1).children.where(:status => 'Active') end end end
Version data entries
162 entries across 162 versions & 1 rubygems