/home/aqcert/public_html/admin/tinymce/tests/plugins
NameSizeModeActions
filemanager/-0755rm
image/-0755rm
link/-0755rm
media/-0755rm
autolink.js36250644editdlrm
autosave.js24100644editdlrm
charmap.js17040644editdlrm
fullpage.js45890644editdlrm
image.js144030644editdlrm
importcss.js93920644editdlrm
jquery_initialization.js7940644editdlrm
jquery_plugin.js24680644editdlrm
legacyoutput.js25930644editdlrm
link.js42060644editdlrm
lists.js517630644editdlrm
media.js71360644editdlrm
noneditable.js13690644editdlrm
paste.js1113380644editdlrm
paste_images.js48990644editdlrm
paste_smart.js33510644editdlrm
searchreplace.js41480644editdlrm
spellchecker.js27000644editdlrm
table.js518340644editdlrm
textpattern.js26590644editdlrm
wordcount.js18780644editdlrm
Edit: /home/aqcert/public_html/admin/tinymce/tests/plugins/wordcount.js (1878B)
module("tinymce.plugins.Wordcount", { setupModule: function() { QUnit.stop(); tinymce.init({ selector: "textarea", add_unload_trigger: false, skin: false, wordcount_target_id: 'current-count', plugins: 'wordcount', init_instance_callback: function(ed) { window.editor = ed; QUnit.start(); } }); } }); test("Blank document has 0 words", function() { expect(1); editor.setContent(''); var result = editor.plugins.wordcount.getCount(); equal(result, 0); }); test("Simple word count", function() { expect(1); editor.setContent('

My sentence is this.

'); var result = editor.plugins.wordcount.getCount(); equal(result, 4); }); test("Does not count dashes", function() { expect(1); editor.setContent('

Something -- ok

'); var result = editor.plugins.wordcount.getCount(); equal(result, 2); }); test("Does not count asterisks, non-word characters", function() { expect(1); editor.setContent('

* something\n\u00b7 something else

'); var result = editor.plugins.wordcount.getCount(); equal(result, 3); }); test("Does not count numbers", function() { expect(1); editor.setContent('

Something 123 ok

'); var result = editor.plugins.wordcount.getCount(); equal(result, 2); }); test("Does not count htmlentities", function() { expect(1); editor.setContent('

It’s my life – – – don\'t you forget.

'); var result = editor.plugins.wordcount.getCount(); equal(result, 6); }); test("Counts hyphenated words as one word", function() { expect(1); editor.setContent('

Hello some-word here.

'); var result = editor.plugins.wordcount.getCount(); equal(result, 3); }); test("Counts words between blocks as two words", function() { expect(1); editor.setContent('

Hello

world

'); var result = editor.plugins.wordcount.getCount(); equal(result, 2); });