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

5 posts, 1 answers
  1. Thierry Vazzoler
    Thierry Vazzoler avatar
    1 posts
    Member since:
    Nov 2008

    Posted 20 Mar 2014 Link to this post

    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.
  2. Answer
    Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 24 Mar 2014 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Frankie
    Frankie avatar
    2 posts
    Member since:
    Oct 2015

    Posted 06 Oct 2015 in reply to Ianko Link to this post

    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.

  5. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 07 Oct 2015 Link to this post

    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
  6. Frankie
    Frankie avatar
    2 posts
    Member since:
    Oct 2015

    Posted 07 Oct 2015 in reply to Ianko Link to this post

    Hi Ianko,

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

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017