Rank: Newbie Groups: Member
Joined: 10/9/2014 Posts: 3
|
Hi, is it possible to configure the Editor to use the File Browser option when inserting a link much like it does for inserting an image?
Thanks.
|
Rank: Newbie Groups: Member
Joined: 10/9/2014 Posts: 3
|
I figured it out and it seems to work pretty well. In case this may help someone else, adding this custom dialog for InsertOrEditLink works. It basically adds a button to the link url box that brings up the file explorer.
Code: HTML/ASPX
<DialogContents>
<eo:EditorDialogContent CommandName="InsertOrEditLink">
<ContentTemplate>
<table cellSpacing="3" cellPadding="1" border="0">
<tr>
<td width="60px" nowrap="nowrap">Url:</td>
<td colspan="3">
<input type="text" name="eo_editor_insertlink_url" style="width:230px;" />
<input type="button" style="width:20px" value="..." onclick="eo_GetContainer(this, 'Editor').browseFile(this, 'eo_editor_insertlink_url', 'Browse Files', 'images');" />
</td>
</tr>
<tr>
<td>Text:</td>
<td>
<input type="text" name="eo_editor_insertlink_text" style="width:250px;" />
</td>
</tr>
<tr>
<td align="right" colspan="2">
<input type="button" name="eo_editor_default_button" value="OK" style="width:80px;" onclick="eo_GetContainer(this, 'Editor').execDialogCommand('InsertOrEditLink', this, event);" />
<input type="button" value="Close" style="width:80px;" onclick="eo_GetContainer(this, 'Editor').closeDialog(this, event);" />
</td>
</tr>
</table>
</ContentTemplate>
</eo:EditorDialogContent>
</DialogContents>
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Great. Thank you very much for sharing!
|