The HTML Editor control fails on post back in medium trust with a security exception.
In the LoadPostData method this line of code is failing:
post = postCollection[ActiveModeId];
if (!string.IsNullOrEmpty(post))
{
ActiveMode = (ActiveModeType) Int64.Parse(post, CultureInfo.InvariantCulture);
}
In the setter for ActiveMode the call to RefreshDesigner and ultimately _designer.UpdateDesignTimeHtml() is what is causing the failure.
Comments: We recommend using the new HtmlEditorExtender control instead of the old HtmlEditor control -- the new HtmlEditorExtender control works in Medium Trust
In the LoadPostData method this line of code is failing:
post = postCollection[ActiveModeId];
if (!string.IsNullOrEmpty(post))
{
ActiveMode = (ActiveModeType) Int64.Parse(post, CultureInfo.InvariantCulture);
}
In the setter for ActiveMode the call to RefreshDesigner and ultimately _designer.UpdateDesignTimeHtml() is what is causing the failure.
Comments: We recommend using the new HtmlEditorExtender control instead of the old HtmlEditor control -- the new HtmlEditorExtender control works in Medium Trust