HtmlEditor :  Phorum 5 The fastest message board... ever.

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.

Goto Thread: PreviousNext
Goto: Forum ListMessage ListNew TopicSearchLog In
Adding an IFrame Element inside Editor
Posted by: Luis (66.20.220.---)
Date: Friday, 23-Sep-2005, 00:31:04

I am building a WYSIWYG HTML editor. I want to be able to add an IFrame element during design. However, when I add it to the document it opens another browser window with the source URL and a browser window with URL:
res://shdoclc/syntax.htm. Any help will be appreciated.

Re: Adding an IFrame Element inside Editor
Posted by: ramida (152.1.87.---)
Date: Friday, 07-Oct-2005, 21:37:17

The problem lies in the implementation of the 'TranslateURL method in HtmlSite.cs. Try this one if you don't need to alter the default mshtml behavior:

public int TranslateUrl(int dwTranslate, String strURLIn, out String pstrURLOut)
{
pstrURLOut = null;
return HRESULT.S_FALSE; //False = not translated.
}



HTH, ramida

Re: Adding an IFrame Element inside Editor
Posted by: ramida (---.ipt.aol.com)
Date: Saturday, 22-Oct-2005, 02:25:36

The problem lies in the TranslateURL() method. If you don't need to alter the mshtml behavior, use this method in the HtmlSite.cs file:

public int TranslateUrl(int dwTranslate, String strURLIn, out String pstrURLOut)
{
pstrURLOut = null;
return HRESULT.S_FALSE;
}

That will eliminate your problem.

HTH, ramida



Your Name: 
Your Email: 
Subject: 
Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically.
Du9EM
This is a moderated forum. Your message will remain hidden until it has been approved by a moderator or administrator
This forum powered by Phorum.