I've 2 questions:
First one:
I've a problem with custom Style definition. I want to edit some of built-in styles. At this moment I've got this code:
StyleDefinition h1 = this.radRichTextEditor1.Document.StyleRepository.GetValueOrNull(RadDocumentDefaultStyles.GetHeadingStyleNameByIndex(1));
h1.SpanProperties.FontSize = ConstDocumentationParams.fontSizeH1;
h1.SpanProperties.ForeColor = System.Drawing.ColorTranslator.FromHtml(ConstDocumentationParams.colorH1);
h1.SpanProperties.FontStyle = ConstDocumentationParams.typeH1;
h1.SpanProperties.FontWeight = Telerik.WinControls.RichTextEditor.UI.FontWeights.Normal;
h1.SpanProperties.FontFamily = new Telerik.WinControls.RichTextEditor.UI.FontFamily(ConstDocumentationParams.fontFamily);
Everything works fine until I select text and click the heading edited by me. Text changes to old style, not new. How can I fix this problem?
Second one:
How can I insert programmatically some element whitch will be generated to html tag: "<h1>","<h2>" etc.
Best regards
Marcin