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

Problems with paragraph style

3 Answers 116 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Jeroen
Top achievements
Rank 1
Jeroen asked on 06 May 2009, 11:40 AM
Hi, we are using the latest version of the telerik editor (5.4.0).

We made a custom paragraphstyles in the editor. But we have some problems in this new version, which were not in the 5.3.2 version.

Part of the toolsfile.xml with the custom paragraph styles:
<paragraphs> 
    <paragraph name="&lt;span class='ms-rteCustom-Headline'>Headline&lt;/span>" value="&lt;span class='ms-rteCustom-Headline'>" /> 
    <paragraph name="&lt;span class='ms-rteCustom-Headline-TeaserArea'>Headline-TeaserArea&lt;/span>" value="&lt;span class='ms-rteCustom-Headline-TeaserArea'>" /> 
    <paragraph name="&lt;span class='ms-rteCustom-Headline-TeaserArea-AccentuatedText' style='background-color: #336fa3;'>Headline-TeaserArea-AccentuatedText&lt;/span>" value="&lt;span class='ms-rteCustom-Headline-TeaserArea-AccentuatedText'>" /> 
    <paragraph name="&lt;span class='ms-rteCustom-SubHeadline'>SubHeadline&lt;/span>" value="&lt;span class='ms-rteCustom-SubHeadline'>" /> 
    <paragraph name="&lt;span class='ms-rteCustom-TextAccentuation'>TextAccentuation&lt;/span>" value="&lt;span class='ms-rteCustom-TextAccentuation'>" /> 
    <paragraph name="&lt;span class='ms-rteCustom-TextDefault'>TextDefault&lt;/span>" value="&lt;span class='ms-rteCustom-TextDefault'>" /> 
  </paragraphs> 
  

  • When I type something in the editor on the first line, and the first line is the online line that contains characters or spaces. And I select the text en give the text a new paragraph style, the style is not applied. When I put in a new line and I want to apply the style to the first line, the style is applied. In short, the styl is only applied if there is more than 1 line in the editor. (This applies to the 5.3.2 version and the 5.4 version)
  • I created a table, put in some text in the first cell. I select the test and want to apply a paragraph style. When I do that. The style is not applied and the tabel only contains the cell the text is in. Before After
      The strange thing is, sometimes an other thing happens. Sometimes the style is applied to the text, but the text is suddenly placed beneath the table: Before  After (Only in the 5.4.0 version).

3 Answers, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 08 May 2009, 01:02 PM
Hello Jeroen,

In the last week our developers made some improvements of the  FormatBlock tool. The fixed version of RadEditor for ASP.NET AJAX is already available for download in our internal builds. These enhancement will be implemented in RadEditor for MOSS for the SP2 of 2009.Q1 version of RadControls for ASP.NET AJAX. It is scheduled for the end of this month or the beginning of the next one. In mean time what you can do is get the Telerik.Web.UI.dll from the latest internal build put it in the GAC and add a bindingRedirect element in your web.config file.
For example:
<dependentAssembly> 
  <assemblyIdentity name="Telerik.Web.UI" publicKeyToken="121fae78165ba3d4"/> 
  <bindingRedirect oldVersion="2009.1.402.20" newVersion="2009.1.xxx.xx"/> 
</dependentAssembly> 



All the best,
Stanimir
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Jeroen
Top achievements
Rank 1
answered on 28 May 2009, 11:21 AM
I just downloaded the latest update of the radeditor.

But now when I type some tekst and I select it and want to give another style using the format block dropdown. The text disappears and I cannot get my cursor in to the editor.

Screenshot

This only occurs if the line you selected is the only line of text in the editor.

When I use 2 lines and I select the second line and change the css using the formatblock, the second line is placed next to the first line.

Before  After
0
Stanimir
Telerik team
answered on 30 May 2009, 01:31 PM
Hello Jeroen,

Tags
WebParts for SharePoint
Asked by
Jeroen
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Jeroen
Top achievements
Rank 1
Share this question
or