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

Version Path
caboose-cms-0.4.114 app/helpers/caboose/application_helper.rb
caboose-cms-0.4.113 app/helpers/caboose/application_helper.rb
caboose-cms-0.4.112 app/helpers/caboose/application_helper.rb
caboose-cms-0.4.111 app/helpers/caboose/application_helper.rb
caboose-cms-0.4.110 app/helpers/caboose/application_helper.rb
caboose-cms-0.4.109 app/helpers/caboose/application_helper.rb
caboose-cms-0.4.108 app/helpers/caboose/application_helper.rb
caboose-cms-0.4.106 app/helpers/caboose/application_helper.rb
caboose-cms-0.4.105 app/helpers/caboose/application_helper.rb
caboose-cms-0.4.104 app/helpers/caboose/application_helper.rb
caboose-cms-0.4.103 app/helpers/caboose/application_helper.rb
caboose-cms-0.4.102 app/helpers/caboose/application_helper.rb
caboose-cms-0.4.101 app/helpers/caboose/application_helper.rb
caboose-cms-0.4.100 app/helpers/caboose/application_helper.rb
caboose-cms-0.4.99 app/helpers/caboose/application_helper.rb
caboose-cms-0.4.98 app/helpers/caboose/application_helper.rb
caboose-cms-0.4.97 app/helpers/caboose/application_helper.rb