Sha256: 101e7ef6b87159b05aadd4fc346b875d986e14d48effa1b7790447a763dba68d

Contents?: true

Size: 862 Bytes

Versions: 5

Compression:

Stored size: 862 Bytes

Contents

= current_form.text_area field.name, :rows=>(field.rows || 20), :"data-simple"=>field.simple 
- if @textarea_component_include_tinymce_once.nil? 
  :javascript
    $(function(){
      load_tinymce({
      theme_advanced_buttons1 : "bold,italic,underline,|,justifyleft,justifycenter,justifyright,|,formatselect,|,link,unlink,image,code,gallery",
      setup : function(ed) {
          // Add a custom button
          ed.addButton('gallery', {
            title : '#{t('lolita.tinymce.gallery')}',
            image : '#{asset_path('lolita/tinymce_gallery.png')}',
            onclick : function() {
              $('#fixed-gallery button').css("top",$(window).height()/4-30);
              $('#fixed-gallery').css("height",$(window).height()/4).toggle();
            }
          })
        }
      });
    })
- @textarea_component_include_tinymce_once = "done" 

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
lolita-file-upload-0.6.2 app/views/components/lolita/configuration/field/string/text_gallery/_display.html.haml
lolita-file-upload-0.6.1 app/views/components/lolita/configuration/field/string/text_gallery/_display.html.haml
lolita-file-upload-0.6.0 app/views/components/lolita/configuration/field/string/text_gallery/_display.html.haml
lolita-file-upload-0.5.0 app/views/components/lolita/configuration/field/string/text_gallery/_display.html.haml
lolita-file-upload-0.4.13 app/views/components/lolita/configuration/field/string/text_gallery/_display.html.haml