This is the discussion forum for the HtmlEditor. See also the HtmlEditor home page, where you can download the control, and the Documentation Wiki, a collaborative project for documenting the control.
Is there a way that one can make it so that the behavior of a link in design/edit mode is the same as browsing mode?
I realize that's kind of weird, because clicking on a link in design mode should just move the cursor there, but in my application links are non-editable (they have the ATOMICSELECTION attribute set).
Write your code on onmousemove event
htmlDocumentEvents_Event_onmousemove
// htmlEditorQuickInfo is html control
// Do action if element is href
if ((pEvtObj.ctrlKey) && (null != pEvtObj.srcElement) && ( TAG_ACHOR == pEvtObj.srcElement.tagName))
{
this.htmlEditorQuickInfo.Cursor = Cursors.Hand;
setAchorTagValue(pEvtObj);
}
Ok, I figured out the code, but I do not have a html mouse move event for my html editor. The regular mouse move event handler is there, but I cannot use the HtmlEventHandler/HtmlEventArgs for the new method. Any Ideas?
This is what I have(which does not work):
this.htmlMain.MouseMove /*.HtmlEvent */+= new onlyconnect.HtmlEventHandler(this.htmlMain_MouseMove);
I am using the htmleditor from this site, but I do not quite understand what you mean by modifying the code above. That line of code is not in my HtmlSite.cs. Could I have an old version (I downloaded it three day ago from the main site)?
Ok, I guess I should stop posting questions, because I solved my problem again. Sorry. I also should have looked at the title of this topic, because I wanted this in regular mode, not design.