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

RadEditor MOSS predefined paragraphs problem

2 Answers 28 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Dimitar
Top achievements
Rank 1
Dimitar asked on 03 Aug 2010, 12:17 PM
Hello,

I use RadEditor to edit pages in a wiki library in MOSS 2007.
I predefined the following paragraphs to be used in the FormatBlock dropdown:

  <paragraphs>
   <paragraph name="&lt;p class='Schrift_normal'>Normal&lt;/p>" value="&lt;p class='Schrift_normal'>" />
   <paragraph name="&lt;p class='Schrift_klein'>Klein&lt;/p>" value="&lt;p class='Schrift_klein'>" />
   <paragraph name="&lt;h1 class='Gliederungspunkt'>Gliederungspunkt&lt;/h1>" value="&lt;h1 class='Gliederungspunkt'>" />
   <paragraph name="&lt;h2 class='Ueberschrift_1'>Überschrift 1&lt;/h2>" value="&lt;h2 class='Ueberschrift_1'>" />
   <paragraph name="&lt;h3 class='Ueberschrift_2'>Überschrift 2&lt;/h3>" value="&lt;h3 class='Ueberschrift_2'>" />
  </paragraphs>

I explicitly want the H2 html tag in my example to be called "Überschrift 2" (I am using the German language localization)
The problem is when I click on a text that is enclosed in H2 tags <h2 class='Ueberschrift_1'>some text<h2>, the FormatBlock displays "Überschrift 2" instead of "Überschrift 1", which I predefined!
The same happens when I click on a text enclosed by <H1> tags. Instead of "Gliederungspunkt", the FormatBlock displays "Überschrift 1".
Is there any way to control what is being displayed in the FormatBlock dropdown on the OnClick event?

Thank you in advance!
Best regards,
Dimitar Kuzumski
Berufsgennosenschaft Metall Nord Süd
Mainz, Germany

2 Answers, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 03 Aug 2010, 04:22 PM
Hi Dimitar,

The state of the FormatBlock dropdown is returned by the browser's queryCommandValue method and it depends on the used browser. The dropdown value is updated according the returned value of this method  and differs depending on the browser and the browser's localization and that is why we do not modify it.

You can use the solution provided in the following forum thread to display your own string in the dropdown headed depending on the value returned by the browser: Paragraph Styles, custom header.

Best regards,
Rumen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Rumen
Telerik team
answered on 03 Aug 2010, 04:23 PM
Hi Dimitar,

I just want to add that you can see how to attach to the RadEditor's event in MOSS in this KB article: How to execute custom code called on RadEditor's events.

Best regards,
Rumen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Editor
Asked by
Dimitar
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or