Hi Rumen,
Although I do believe that these are the correct fields the fix does not seem to work.
The fields are correctly set to 'true' and remain 'true' throughout the editor's life cycle, according to the test code below, but still only a text-area is rendered.
Thanks,
Jan-Pieter
PS: The 'normal' workaround does work for our projects running the 7.x RadEditor
namespace
RadEditor65Firefox6Test
{
public
class
TestEditor : Telerik.WebControls.RadEditor
{
private
void
AssertIsBrowserSupported()
{
System.Reflection.FieldInfo browserCheckedField =
typeof
(Telerik.WebControls.RadEditor).GetField(
"_xa49ae9b39666c916"
, System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic);
var browserChecked = (
bool
)browserCheckedField.GetValue(
this
);
System.Reflection.FieldInfo browserSupportedField =
typeof
(Telerik.WebControls.RadEditor).GetField(
"_x0718e97515adc940"
, System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic);
var browserSupported = (
bool
)browserSupportedField.GetValue(
this
);
System.Diagnostics.Debug.Assert(browserChecked ==
true
,
"browserChecked FALSE"
);
System.Diagnostics.Debug.Assert(browserSupported ==
true
,
"browserSupported FALSE"
);
}
protected
override
void
OnInit(EventArgs e)
{
if
(
this
.Context.Request.Browser.Browser.ToLowerInvariant() ==
"firefox"
)
{
System.Reflection.FieldInfo browserCheckedField =
typeof
(Telerik.WebControls.RadEditor).GetField(
"_xa49ae9b39666c916"
, System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic);
browserCheckedField.SetValue(
this
,
true
);
System.Reflection.FieldInfo browserSupportedField =
typeof
(Telerik.WebControls.RadEditor).GetField(
"_x0718e97515adc940"
, System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic);
browserSupportedField.SetValue(
this
,
true
);
}
base
.OnInit(e);
AssertIsBrowserSupported();
}
protected
override
void
OnLoad(EventArgs e)
{
base
.OnLoad(e);
AssertIsBrowserSupported();
}
protected
override
void
Render(HtmlTextWriter output)
{
AssertIsBrowserSupported();
base
.Render(output);
AssertIsBrowserSupported();
}
}
}