Hi All,
I want to get the path of image file for 'asp:TextBox', i use the API: fck.Commands.GetCommand('Image').Execute(); open the image window,then, how to get the path of image file , and the content of fckeditor don't be effect.
I want to get the path of image file for 'asp:TextBox', i use the API: fck.Commands.GetCommand('Image').Execute(); open the image window,then, how to get the path of image file , and the content of fckeditor don't be effect.
<%@ Page Language="C#" ... %> <%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %> <script language="javascript" type="text/javascript"> function ExecuteCommand(commandName) { var oEditor = FCKeditorAPI.GetInstance('ctl00_ContentPlaceHolder1_FCKeditor1'); oEditor.Commands.GetCommand(commandName).Execute(); } </script > <asp:TextBox ID="txt_Img" runat="server" Width="300px" ></asp:TextBox> <input id="Button1" name="Button1" type="button" value="UpLoad" onclick="ExecuteCommand('Image');" /><br /><br /> <FCKeditorV2:FCKeditor ID="procontent" runat="server" ></FCKeditorV2:FCKeditor>