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

RadEditor toolbar : b instead of strong and i instead of em

4 Answers 104 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Thierry Vazzoler
Top achievements
Rank 1
Thierry Vazzoler asked on 20 Mar 2014, 01:00 PM
Hello,

I want to use your RadEditor on our corporate page but I have an issue : due to the compatibility issue I need that the tool bar button Bold instead of putting the <strong> tag around my text uses the <b> tag. Its the same for the Italic : I need the <i> tag instead of <em>.

Can those buttons be override to do that ? Or maybe I need to create my own buttons ? Can you give me a code example for this.

Thanks.

4 Answers, 1 is accepted

Sort by
0
Accepted
Ianko
Telerik team
answered on 24 Mar 2014, 04:20 PM
Hi  Thierry,

You can accomplish the desired functionality by following this example configuration:

ASP.NET
<telerik:RadScriptManager runat="server" ID="RSM1"></telerik:RadScriptManager>
 
<script type="text/javascript" src="<%= Page.ClientScript.GetWebResourceUrl(typeof(RadEditor), "Telerik.Web.UI.Editor.RadEditor.Commands.LegacyInlineCommands.js") %>"></script>
 
<telerik:RadEditor ID="RadEditor1" runat="server">
</telerik:RadEditor>

C#
protected void Page_Load(object sender, EventArgs e)
{
    RadEditor1.DisableFilter(EditorFilters.ConvertTags);
}

Let me know if you ned further information.

Regards,
Ianko
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
0
Frankie
Top achievements
Rank 1
answered on 06 Oct 2015, 09:06 PM

Hi, I was wondering if there is a way to enable both <strong> and <b> tags within the control, or does it have to be one or the other? I would like headers of my text to just be bold, but there are key words that I would like to have in a strong tag.

Please let me know your thoughts.

0
Ianko
Telerik team
answered on 07 Oct 2015, 07:08 AM
Hello,

I am afraid, no. RadEditor commands can apply only same type of inline style or tag. Such a behavior would involve different behavior according to the parent selected node. Which is considered as incorrect behavior according to the RadEditor design.  

Regards,
Ianko
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Frankie
Top achievements
Rank 1
answered on 07 Oct 2015, 01:13 PM

Hi Ianko,

Thank you for your quick response! This is good to know.

Tags
Editor
Asked by
Thierry Vazzoler
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Frankie
Top achievements
Rank 1
Share this question
or