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

Problems adding table or using table wizard

1 Answer 26 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Lee Springthorpe
Top achievements
Rank 1
Lee Springthorpe asked on 08 Oct 2013, 11:08 AM
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?

1 Answer, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 10 Oct 2013, 03:24 PM
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.
Tags
Editor
Asked by
Lee Springthorpe
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Share this question
or