PHP Classes

File: WITheme/WICMS/admin/js/plugins/textEditor/tinymce_4.2.6_dev/tinymce/tests/plugins/jquery_initialization.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/plugins/jquery_initialization.js   Download  
File: WITheme/WICMS/admin/js/plugins/textEditor/tinymce_4.2.6_dev/tinymce/tests/plugins/jquery_initialization.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: 794 bytes
 

Contents

Class file image Download
module("tinymce.plugins.jQueryInitialization", { setupModule: function() { document.getElementById('view').innerHTML = ( '<textarea id="elm1"></textarea>' + '<textarea id="elm2"></textarea>' ); this.val = $.fn.val; QUnit.stop(); $(function() { QUnit.start(); }); }, teardown: function() { $.fn.val = this.val; } }); test("applyPatch is only called once", function() { expect(1); var options = {plugins: [ "pagebreak,layer,table,save,emoticons,insertdatetime,preview,media,searchreplace", "print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,template" ]}, oldValFn; $('#elm1').tinymce(options); oldValFn = $.fn.val = function() { // no-op }; $('#elm2').tinymce(options); equal($.fn.val, oldValFn); });