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

Just want a simple editor

4 Answers 88 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Simon
Top achievements
Rank 1
Simon asked on 18 Feb 2009, 12:15 AM
Hello

I just want a simple editor like th one I'm using here. However I find the editor control so complex I need to turn lots of things off rather than turn things on, I find the sizing goes all over the shop, especially within a grid.

Any chance of getting the code for using the RadEditor as it has been in the forums

4 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 20 Feb 2009, 05:23 PM
Hi Simon,

You can very easily populate the editor only with a few tools and hide the editor's modules placed below the content area. Here is a sample example demonstrating how easily is to populate the editor's tools inline and hide the modules by adding a fake module:

<telerik:RadEditor runat="server" ID="RadEditor1" Width="300px" Height="250px"
    <Tools> 
        <telerik:EditorToolGroup> 
            <telerik:EditorTool Name="Bold" /> 
            <telerik:EditorTool Name="Italic" /> 
            <telerik:EditorTool Name="Underline" /> 
            <telerik:EditorTool Name="FontName" /> 
            <telerik:EditorTool Name="RealFontSize" />                 
        </telerik:EditorToolGroup> 
    </Tools> 
    <Modules> 
        <telerik:EditorModule Name="fakeModule" /> 
    </Modules> 
</telerik:RadEditor>  

Sincerely,
Rumen
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
Simon
Top achievements
Rank 1
answered on 20 Feb 2009, 05:46 PM
Thanks
0
siby
Top achievements
Rank 1
answered on 21 Feb 2009, 09:43 AM
Hi am using 2007 version of telerik . I need to customize the editor so that the apply css will apply the class name to a span tag instead of the font tag. Is there any simple way to achieve this. Also if I try to customize the editor through the javascript many of the functions like get_name ,get_text ,set_cancel etc. are not working. Please reply me its quite an urgent.
0
Rumen
Telerik team
answered on 24 Feb 2009, 09:19 AM
Hi Siby,

The get_name ,get_text ,set_cancel methods are functions of RadEditor for ASP.NET AJAX. If you are using RadEditor Classic please see the following help article: OnClientCommandExecuting and GetParentElement.

Please, note that if the ConvertFontToSpan property is set to true, then all font tags will be converted to span tags when switching to Html mode or submitting the content:

<radE:RadEditor ID="RadEditor1" ConvertFontToSpan="true"  runat="server"></radE:RadEditor>

So the class attribute will be applied to a <font> tag but after the content submission the <font class="someClass"> will become <span class="someClass">.

If you need further help please open a support ticket and send a sample fully working project that demonstrates the problem.

Best regards,
Rumen
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.
Tags
Editor
Asked by
Simon
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Simon
Top achievements
Rank 1
siby
Top achievements
Rank 1
Share this question
or