diff --git a/test-browser/plugin/index.html b/test-browser/plugin/index.html index f81dc19b70..d5bcaa2202 100644 --- a/test-browser/plugin/index.html +++ b/test-browser/plugin/index.html @@ -48,6 +48,7 @@ getcontentof
getcurrent
sethighlight
+ getfilesfrompath

diff --git a/test-browser/plugin/plugin.js b/test-browser/plugin/plugin.js index 27e1305de3..d09e39bc72 100644 --- a/test-browser/plugin/plugin.js +++ b/test-browser/plugin/plugin.js @@ -73,4 +73,9 @@ window.onload = function () { extension.call('editor', 'highlight', [document.getElementById('filename').value, document.getElementById('valuetosend').value, document.getElementById('valuetosend2').value], function (error, result) { console.log(error, result) }) }) + + document.querySelector('input#getfilesfrompath').addEventListener('click', function () { + extension.call('editor', 'getFilesFromPath', [document.getElementById('filename').value], + function (error, result) { console.log(error, result) }) + }) }