This is a migrated thread and some comments may be shown as answers.

Invalid styles in RadMarkupEditor.Value

1 Answer 69 Views
TextBox
This is a migrated thread and some comments may be shown as answers.
Michal Zámec
Top achievements
Rank 2
Michal Zámec asked on 08 Jun 2011, 10:43 AM
Hi,

I have RadMarkupDialog hosted in a form (Editor.Parent = form). My scenario is: write something into editor (text, not markup), add a color or size for that text and click Apply.

When I use it in VS without SP1, everything works fine. But when i try the same scenario in VS with SP1, size and color is returned to default values.

When I looked deeper into code, I've found out, that InnerHTML value of Editor.DesignViewDomDocument.body is without size and color in FONT tag

There are different versions of mshtml.dll (probably because of that SP) on those two computers, could that be the cause of that problem?

Primitive app I use looks like this

public Form1()
{
    InitializeComponent();
 
 
    radMarkupDialog1.Editor.Parent = panel1;
 
    radMarkupDialog1.Editor.EditorClosed +=new EventHandler(Editor_EditorClosed);
}
 
 
void Editor_EditorClosed(object sender, EventArgs e)
{
    // Track down ((radMarkupDialog1.Editor.DesignViewDomDocument).body).innerHTML - In VS without SP, there are font styles for color, size etc., but in VS with SP, they're gone
    ;
}



 Thank you

1 Answer, 1 is accepted

Sort by
0
Martin Vasilev
Telerik team
answered on 13 Jun 2011, 05:13 PM
Hi Michal Zámec,

Thank you for writing.

I have tested RadMarkupDialog at design time and it seems it does not work as expect, indeed. We will address this issue in one of the next releases. For the time being, you can enter the html formatted text manually.

I have updated your Telerik points for reporting this issue. Let me know if you have any other questions.

Best wishes,
Martin Vasilev
the Telerik team
Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
Tags
TextBox
Asked by
Michal Zámec
Top achievements
Rank 2
Answers by
Martin Vasilev
Telerik team
Share this question
or