PHP Classes

File: WITheme/WICMS/admin/js/plugins/textEditor/tinymce_4.2.6_dev/tinymce/tests/tinymce/file/ImageScanner.js

Recommend this page to a friend!
  Classes of Jules Warner   WICMS   WITheme/WICMS/admin/js/plugins/textEditor/tinymce_4.2.6_dev/tinymce/tests/tinymce/file/ImageScanner.js   Download  
File: WITheme/WICMS/admin/js/plugins/textEditor/tinymce_4.2.6_dev/tinymce/tests/tinymce/file/ImageScanner.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: WICMS
Database driven content management system with PDO
Author: By
Last change:
Date: 7 years ago
Size: 970 bytes
 

Contents

Class file image Download
ModuleLoader.require([ "tinymce/file/ImageScanner", "tinymce/file/BlobCache", "tinymce/Env" ], function(ImageScanner, BlobCache, Env) { if (!tinymce.Env.fileApi) { return; } module("tinymce.file.ImageScanner"); var base64Src = 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAAAAACH5BAAAAAAALAAAAAABAAEAAAICTAEAOw=='; QUnit.asyncTest("findAll", function() { var imageScanner = new ImageScanner(new BlobCache()); document.getElementById('view').innerHTML = ( '<img src="' + base64Src + '">' + '<img src="' + Env.transparentSrc + '">' + '<img src="' + base64Src + '" data-mce-bogus="1">' + '<img src="' + base64Src + '" data-mce-placeholder="1">' ); imageScanner.findAll(document.getElementById('view')).then(function(result) { QUnit.start(); equal(result.length, 1); equal('data:image/gif;base64,' + result[0].blobInfo.base64(), base64Src); strictEqual(result[0].image, document.getElementById('view').firstChild); }); }); });