js:
myUserInput = function(form) {
E.replaceSelection('<a href="http://example.com/download.php?filename='+ form.elements["filename"].value + '&path=' +
form.elements["path"].value + '">' +
form.elements["title"].value + '</a>');
editor.dialog.close();
}
var html = 'Filename: '+ eDefInputText('filename') + '<br/>';
html += 'Link href: '+ eDefInputText('path') + '<br/>';
html += 'Title: '+ eDefInputText('title') + '<br/>';
html += eDefInputSubmit('sbmt', 'OK');
html = eDefHTML('form', html, {onsubmit: 'myUserInput(this); return false;'});
editor.dialog.open('File', html);
Sun, 08/30/2009 - 00:13
#1
