Sha256: 31141882233dca173a3caf2e3207dcf999e6c011e9c670ee26aaa32c60cc1f6d
Contents?: true
Size: 608 Bytes
Versions: 41
Compression:
Stored size: 608 Bytes
Contents
/** * Conversions.js * * Released under LGPL License. * Copyright (c) 1999-2016 Ephox Corp. All rights reserved * * License: http://www.tinymce.com/license * Contributing: http://www.tinymce.com/contributing */ define('tinymce/inlite/file/Conversions', [ 'global!tinymce.util.Promise' ], function (Promise) { var blobToBase64 = function (blob) { return new Promise(function(resolve) { var reader = new FileReader(); reader.onloadend = function() { resolve(reader.result.split(',')[1]); }; reader.readAsDataURL(blob); }); }; return { blobToBase64: blobToBase64 }; });
Version data entries
41 entries across 41 versions & 2 rubygems