| Name | Size | Mode | Actions |
|---|---|---|---|
| filemanager/ | - | 0755 | rm |
| image/ | - | 0755 | rm |
| link/ | - | 0755 | rm |
| media/ | - | 0755 | rm |
| autolink.js | 3625 | 0644 | editdlrm |
| autosave.js | 2410 | 0644 | editdlrm |
| charmap.js | 1704 | 0644 | editdlrm |
| fullpage.js | 4589 | 0644 | editdlrm |
| image.js | 14403 | 0644 | editdlrm |
| importcss.js | 9392 | 0644 | editdlrm |
| jquery_initialization.js | 794 | 0644 | editdlrm |
| jquery_plugin.js | 2468 | 0644 | editdlrm |
| legacyoutput.js | 2593 | 0644 | editdlrm |
| link.js | 4206 | 0644 | editdlrm |
| lists.js | 51763 | 0644 | editdlrm |
| media.js | 7136 | 0644 | editdlrm |
| noneditable.js | 1369 | 0644 | editdlrm |
| paste.js | 111338 | 0644 | editdlrm |
| paste_images.js | 4899 | 0644 | editdlrm |
| paste_smart.js | 3351 | 0644 | editdlrm |
| searchreplace.js | 4148 | 0644 | editdlrm |
| spellchecker.js | 2700 | 0644 | editdlrm |
| table.js | 51834 | 0644 | editdlrm |
| textpattern.js | 2659 | 0644 | editdlrm |
| wordcount.js | 1878 | 0644 | editdlrm |
/home/aqcert/public_html/admin/tinymce/tests/plugins/searchreplace.js (4148B)
x
", editor.getContent()); }); test('Find and replace first in multiple matches', function() { editor.getBody().innerHTML = 'a b a'; editor.plugins.searchreplace.find('a'); ok(editor.plugins.searchreplace.replace('x')); equal("x b a
", editor.getContent()); }); test('Find and replace all in multiple matches', function() { editor.getBody().innerHTML = 'a b a'; editor.plugins.searchreplace.find('a'); ok(!editor.plugins.searchreplace.replace('x', true, true)); equal("x b x
", editor.getContent()); }); test('Find multiple matches, move to next and replace', function() { editor.getBody().innerHTML = 'a a'; equal(2, editor.plugins.searchreplace.find('a')); editor.plugins.searchreplace.next(); ok(!editor.plugins.searchreplace.replace('x')); equal("a x
", editor.getContent()); }); test('Find and replace fragmented match', function() { editor.getBody().innerHTML = 'testtest'; editor.plugins.searchreplace.find('test'); ok(editor.plugins.searchreplace.replace('abc')); equal(editor.getContent(), "abctest
"); }); test('Find and replace all fragmented matches', function() { editor.getBody().innerHTML = 'testtest'; editor.plugins.searchreplace.find('test'); ok(!editor.plugins.searchreplace.replace('abc', true, true)); equal(editor.getContent(), "abcabc
"); }); test('Find multiple matches, move to next and replace backwards', function() { editor.getBody().innerHTML = 'a a'; equal(2, editor.plugins.searchreplace.find('a')); editor.plugins.searchreplace.next(); ok(editor.plugins.searchreplace.replace('x', false)); ok(!editor.plugins.searchreplace.replace('y', false)); equal("y x
", editor.getContent()); }); test('Find multiple matches and unmark them', function() { editor.getBody().innerHTML = 'a b a'; equal(2, editor.plugins.searchreplace.find('a')); editor.plugins.searchreplace.done(); equal('a', editor.selection.getContent()); equal(0, editor.getBody().getElementsByTagName('span').length); }); test('Find multiple matches with pre blocks', function() { editor.getBody().innerHTML = 'abcabcabc'; equal(3, editor.plugins.searchreplace.find('b')); equal(Utils.normalizeHtml(editor.getBody().innerHTML), ( 'abc' + '
abc ' +
'abc'
));
});