Welcome Guest Search | Active Topics | Sign In | Register

Is it possible to use File Browser when inserting link in Editor? Options
Thomas Oates
Posted: Sunday, March 29, 2015 4:04:48 PM
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.
Thomas Oates
Posted: Sunday, March 29, 2015 9:57:07 PM
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>
eo_support
Posted: Tuesday, March 31, 2015 9:26:52 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,079
Great. Thank you very much for sharing!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.