Problems adding table or using table wizard

2 posts, 0 answers
  1. Lee Springthorpe
    Lee Springthorpe avatar
    7 posts
    Member since:
    Oct 2012

    Posted 08 Oct 2013 Link to this post

    Hi,

    I have come across a problem with the editor.  When adding a table or using the table wizard it does not always add the <br> tag at the end.  This in effect stops from being able to add anymore content.  In Firefox if the table is deleted and re-added it will then add the <br> tag and everything will be fine.  In IE it never adds the <br> tag, I have replicated the problem using the demo.
    On the Overview page,
    go to HTML view, delete all content,
    switch back to Design view, add a table or use table wizard.
    Then try to add content or move to next line after the table.

    On the editors in our project we have HTML mode disabled, going to HTML view to add a <br> tag is not an option.  Is there a solution to this problem or an option that needs to be added that will automatically add the <br> tag?
  2. Ianko
    Admin
    Ianko avatar
    1940 posts

    Posted 10 Oct 2013 Link to this post

    Hi Lee,

    Thank you for bringing this issue to my attention.

    I can verify that this is a bug, which is reproducible only under IE10 and IE9. You could follow this feedback portal item to track its status, vote or comment.

    As appreciation for this report I am updating your Telerik points.

    Possible solution is to use this example JavaScript method attached to the OnClientCommandExecuted event of the RadEditor control:
    function OnClientCommandExecuted(editor, args) {
        var command = args.get_commandName();
        if (command = "InsertTable") {
            var selection = editor.getSelection();
            var range = selection.getRange();
            if (range.pasteHTML) {
                range.pasteHTML("<br />");
            }
            else {
                editor.pasteHtml("<br/>");
            }
        }
    }


    Regards,
    Ianko
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top