Sha256: b713dda737ae13ba1d9b91be8c6d3722083e44ea174c4e5d51d4ee14040b83df

Contents?: true

Size: 1.47 KB

Versions: 1

Compression:

Stored size: 1.47 KB

Contents

I"Ô(function() {
  $.Editable.DEFAULTS.key = 'Tb3QXIa1QZh1UOXATEX==';

  $(document).on('ready page:load', function() {
    $('textarea.froala', '.wysiwyg').editable({
      inlineMode: false,
      buttons: ['bold', 'italic', 'underline', 'sep', 'formatBlock', 'align', 'insertOrderedList', 'insertUnorderedList', 'table', 'sep', 'createLink', 'insertImage', 'uploadFile', 'insertVideo', 'sep', 'undo', 'redo', 'removeFormat', 'fullscreen', 'sep', 'html'],
      blockTags: {
        n: 'Normal',
        h2: 'Heading 2',
        h3: 'Heading 3',
        h4: 'Heading 4',
        blockquote: 'Quote',
        pre: 'Code'
      },
      height: 400,
      filesLoadURL: '/push_type/wysiwyg_media',
      filesLoadParams: {
        filter: 'file'
      },
      fileUploadURL: '/push_type/wysiwyg_media',
      fileUploadParam: 'asset[file]',
      imagesLoadURL: '/push_type/wysiwyg_media',
      imagesLoadParams: {
        filter: 'image'
      },
      imageUploadURL: '/push_type/wysiwyg_media',
      imageUploadParam: 'asset[file]',
      theme: 'pt'
    });
    $('textarea.froala', '.wysiwyg').on('editable.focus', function(e, editor) {
      return editor.$box.addClass('focus');
    });
    $('textarea.froala', '.wysiwyg').on('editable.blur', function(e, editor) {
      return editor.$box.removeClass('focus');
    });
    return $('textarea.froala', '.wysiwyg').on('editable.imageError', function(e, editor, error) {
      return alert(error.message);
    });
  });

}).call(this);
:ET

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
push_type_wysiwyg-0.6.0.beta.1 test/dummy/tmp/cache/assets/development/sprockets/v3.0/7KG2RzB6OWQdAXCrPHAoghP1y1k0-Qn-uli2-V1vz-k.cache