I am having an issue when I use the WebHtmlEditor control with in a DetailsView. Every thing seems to work until I click on the InsertImage icon. The page that displays in the popup window is the containing webpage.
If I remove the WebHtmlEditor control from the DetailsView the InsertImage popup window works fine. Any reason why I can not use the WebHtmlEditor control in a DetailsView?
So no one has experience using the WebHTMLEditor in a detail view control?
MTmace
Hello,Unfortunately I count not to reproduce the issue. Please find my sample project attached. This project works properly with IE Firefox and Chrome.Am I missing something?
Thanks for the reply but I do not have an application to open a rar file. Can you zip the file?
Yes, sorry for that - please find the project attached in ZIP.
Rumen Stankov
Sorry it took me so long to test your solution.I placed the html editor in the ItemTemplate and it did work. However the item template contains a label. It is the edit template that is causing the issue.
<asp:DetailsView ID="dvI" runat="server" DataSourceID="odsI" AutoGenerateRows="false" > <Fields> <asp:TemplateField HeaderText="Desc"> <ItemTemplate> <asp:Label ID="lbl" runat="server" Text='<%# Eval("Desc") %>' /> </ItemTemplate> <EditItemTemplate> <ighedit:WebHtmlEditor ID="WebHtmlEditor1" runat="server" Text='<%# Bind("Desc") %>' UploadedFilesDirectory="~/Images/"></ighedit:WebHtmlEditor> </EditItemTemplate> </asp:TemplateField> <asp:CommandField ShowEditButton="true" /> </Fields></asp:DetailsView>
this is the javascript from srciptresource file. I commented on the line it is breaking..
var session = this._currentSession;
var nextScript = Array.dequeue(session.scriptsToLoad);
scriptElement.innerHTML = scriptElement.text;
}
this._currentTask = new Sys._ScriptLoaderTask(scriptElement, this._scriptLoadedDelegate);
var headElements = document.getElementsByTagName('head');
headElements[0].appendChild(scriptElement); //// Breaking on this line.....
Sys._ScriptLoader._clearScript(scriptElement);
this._stopSession();
if(callback) {
Hello,
I believe at this point it is best to contact Developer Support directly, as this is not something that I think we can solve in peer-to-peer forums (I am having hard times reproducing it). Developer Support can be reached at:
http://ko.infragistics.com/Support/#Overview