Hello.
First of all, I would like to thank Mr. Shulman for the wonderful and powerful editor!
While being somewhat bigger than WikiBar, QuickEdit - correctly handles applying foreground and background to text and has much richer functionality.
This problem indeed still exist today!
One image may say more than million of words:
http://imgur.com/vJlygOjPerhaps Mr. Shulman could find a slice of his time to update his marvelous (without exaggeration) plugins. That would be wonderful.
The solution which works is indeed in updating the tiddler. This works and here is how:
Edit: QuickEditPlugin
if(window.Components) { // moz
try {
- netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
- var nsIFilePicker = window.Components.interfaces.nsIFilePicker;
- var picker = Components.classes['@
mozilla.org/filepicker;1'].createInstance(nsIFilePicker);
- picker.init(window, msg, nsIFilePicker.modeOpen);
- var thispath = Components.classes['@
mozilla.org/file/local;1'].createInstance(Components.interfaces.nsILocalFile);
- thispath.initWithPath(path);
- picker.displayDirectory=thispath;
- picker.defaultExtension='jpg';
- picker.defaultString=file;
- picker.appendFilters(nsIFilePicker.filterAll|nsIFilePicker.filterImages);
- if (picker.show()!=nsIFilePicker.returnCancel)
- var result="file:///"+picker.file.path.replace(/\\/g,'/');
+ var result=prompt(msg,path+file);
}
catch(e) { alert('error during local file access: '+e.toString()) }
Thats it. Just as stated by Stephan Hradek.
Image of it working:
http://imgur.com/OJZX489This is for anyone who strikes in finding the solution, as TW5 is still very lacking in WYSIWYG- (editor requires external dependency, making it unportable) and markup- editors.