Apr 12, 2003, 8:20 AM
Remember that this is code for htmlArea 2.x, not 3.0a. It should work if you put the code in the function editor_action in editor.js. I put the code below the part where "insertlink" is handled.
Re: [mbourque] "Image Manager"-like file manager
Also, don't forget to add the button and the button-producing code:
further up in the file. (I attached an icon you can use :P)
"linktofile": ['linktofile', 'Link to a File', 'editor_action(this.id)', 'ed_linktofile.gif'],
What might be causing an error is that I assume that a window name "editdoc" has already been defined. You can change that into 'insertlinkdialog' or something else.
Let me know if it works.
(This post was edited by taurentius on Apr 12, 2003, 8:21 AM)