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

Paragraph Styles

1 Answer 122 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Christopher Blickley
Top achievements
Rank 2
Christopher Blickley asked on 17 Mar 2009, 05:15 PM
Hello,

I'm using the new Q1 2009 version of RadEditor with IE7 (haven't tested other browsers) and am trying to work with the Paragraph Style/Format Block.  I've set the following in my tools files:

 
<paragraphs> 
    <paragraph name="Clear" value="&lt;body>" /> 
    <paragraph name="&lt;H2 class='separator'>Heading 2&lt;/H2>" value="&lt;H2 class='separator'>" /> 
    <paragraph name="&lt;H1 class='separator'>Heading 1&lt;/H1>" value="&lt;H1 class='separator'>" /> 
</paragraphs> 
 

 


If I put the cursor on a line and select a value from the Format Block drop down, selecting H1 or H2 correctly applies the H1 or H2 with the class name to the paragraph.  I can easily switch back and forth between H1 and H2 by just having the cursor on the line.  However, to select the "Clear", I actually have to select the text/paragraph in question.  Is there a way to have the "Clear" work if just the cursor is on the line and not have to select the actual text?

I've confirmed that the same thing happens in the following online demo, which is also where I got the value for "Clear".

http://demos.telerik.com/aspnet-ajax/editor/examples/formatblock/defaultcs.aspx

Thanks,
Chris

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 23 Mar 2009, 04:15 PM
Hi Christopher,

Thank you for your feature request.

The custom implementation of the FormatBlock tool of RadEditor is very powerful and applies formatting with styles and classes not only on tags but also on selection. The browser FormatBlock command works only on tags.

The RemoveFormat command that the editor uses is a browser implementation, and it does not remove the formatting from selection. To remove the formatting the user should select the whole passage. We do not plan for the time being to create a custom implementation for the RemoveFormat command.

Best regards,
Rumen
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
Christopher Blickley
Top achievements
Rank 2
Answers by
Rumen
Telerik team
Share this question
or