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

Version Path
caboose-cms-0.5.128 app/helpers/caboose/application_helper.rb
caboose-cms-0.5.127 app/helpers/caboose/application_helper.rb
caboose-cms-0.5.126 app/helpers/caboose/application_helper.rb
caboose-cms-0.5.125 app/helpers/caboose/application_helper.rb
caboose-cms-0.5.124 app/helpers/caboose/application_helper.rb
caboose-cms-0.5.123 app/helpers/caboose/application_helper.rb
caboose-cms-0.5.122 app/helpers/caboose/application_helper.rb
caboose-cms-0.5.121 app/helpers/caboose/application_helper.rb
caboose-cms-0.5.120 app/helpers/caboose/application_helper.rb
caboose-cms-0.5.119 app/helpers/caboose/application_helper.rb
caboose-cms-0.5.118 app/helpers/caboose/application_helper.rb
caboose-cms-0.5.117 app/helpers/caboose/application_helper.rb
caboose-cms-0.5.116 app/helpers/caboose/application_helper.rb
caboose-cms-0.5.115 app/helpers/caboose/application_helper.rb
caboose-cms-0.5.114 app/helpers/caboose/application_helper.rb
caboose-cms-0.5.113 app/helpers/caboose/application_helper.rb
caboose-cms-0.5.112 app/helpers/caboose/application_helper.rb
caboose-cms-0.5.111 app/helpers/caboose/application_helper.rb
caboose-cms-0.5.110 app/helpers/caboose/application_helper.rb
caboose-cms-0.5.109 app/helpers/caboose/application_helper.rb