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.189 app/helpers/caboose/application_helper.rb
caboose-cms-0.5.188 app/helpers/caboose/application_helper.rb
caboose-cms-0.5.187 app/helpers/caboose/application_helper.rb
caboose-cms-0.5.186 app/helpers/caboose/application_helper.rb
caboose-cms-0.5.185 app/helpers/caboose/application_helper.rb
caboose-cms-0.5.184 app/helpers/caboose/application_helper.rb
caboose-cms-0.5.183 app/helpers/caboose/application_helper.rb
caboose-cms-0.5.182 app/helpers/caboose/application_helper.rb
caboose-cms-0.5.181 app/helpers/caboose/application_helper.rb
caboose-cms-0.5.180 app/helpers/caboose/application_helper.rb
caboose-cms-0.5.179 app/helpers/caboose/application_helper.rb
caboose-cms-0.5.178 app/helpers/caboose/application_helper.rb
caboose-cms-0.5.177 app/helpers/caboose/application_helper.rb
caboose-cms-0.5.176 app/helpers/caboose/application_helper.rb
caboose-cms-0.5.175 app/helpers/caboose/application_helper.rb
caboose-cms-0.5.174 app/helpers/caboose/application_helper.rb
caboose-cms-0.5.173 app/helpers/caboose/application_helper.rb
caboose-cms-0.5.172 app/helpers/caboose/application_helper.rb
caboose-cms-0.5.171 app/helpers/caboose/application_helper.rb
caboose-cms-0.5.170 app/helpers/caboose/application_helper.rb