Sha256: 2b65f5d36a194429a5cc95c056ef0b4a6a45d18bcb543a9754c8e3ed1db5f810

Contents?: true

Size: 1.17 KB

Versions: 4

Compression:

Stored size: 1.17 KB

Contents

$(function() {
  var froala_editor = $('.froala-editor');

  if (froala_editor.length > 0) {
    var aws_s3 = JSON.parse(froala_editor.attr('data'));

    froala_editor.froalaEditor({
      language: window.location.href.indexOf('/zh/') > 0 ? 'zh_cn' : 'en',
      charCounterCount: false,
      heightMin: '50rem',
      toolbarButtons:['selectAll', 'undo', 'redo', 'bold', 'italic', 'underline', 'fontFamily', 'fontSize', '|', 'specialCharacters', 'color', 'inlineStyle', 'paragraphStyle', '|', 'paragraphFormat', 'align', 'formatOL', 'formatUL', 'outdent', 'indent', 'quote', 'insertHR', '|', 'insertLink', 'insertImage', 'insertVideo', 'insertTable', 'clearFormatting'],
      toolbarButtonsXS:	['bold', 'italic', 'underline', 'fontFamily', 'fontSize', 'insertLink', 'insertImage'],
      videoInsertButtons: ['videoBack', '|', 'videoByURL', 'videoEmbed'],
      imageUploadToS3: {
        bucket: aws_s3['bucket'],
        region: aws_s3['region'],
        keyStart: aws_s3['key_start'],
        params: {
          acl: aws_s3['acl'],
          AWSAccessKeyId: aws_s3['access_id'],
          policy: aws_s3['policy'],
          signature: aws_s3['signature']
        }
      }
    });
  }

});

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tmatt_cms-0.1.7 lib/generators/tmatt_cms/templates/js/utils/froala_editor.js
tmatt_cms-0.1.6 lib/generators/tmatt_cms/templates/js/utils/froala_editor.js
tmatt_cms-0.1.5 lib/generators/tmatt_cms/templates/js/utils/froala_editor.js
tmatt_cms-0.1.4 lib/generators/tmatt_cms/templates/js/utils/froala_editor.js