Sha256: 9ecd90ba74b64ea6c2497b6099c5f3502722eb3981090e64b1b481981d1df2f6
Contents?: true
Size: 1.02 KB
Versions: 17
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
17 entries across 17 versions & 1 rubygems