Sha256: 3d4a118f4c076fb78b70fd4e270a94d0924d37090a734cfb16228c4daebd0183
Contents?: true
Size: 1.2 KB
Versions: 2
Compression:
Stored size: 1.2 KB
Contents
$(document).on('turbolinks:load', 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tmatt_cms-0.1.9 | lib/generators/tmatt_cms/templates/js/utils/froala_editor.js |
tmatt_cms-0.1.8 | lib/generators/tmatt_cms/templates/js/utils/froala_editor.js |