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

Bugs noted with RadEditor

1 Answer 44 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Edward T.
Top achievements
Rank 1
Edward T. asked on 15 Jul 2011, 08:37 PM
Hi, we noticed the following bugs occurring in the current release of the RadEditor that occurs both on our website and in this demo :
<http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx>

  • Under Safari: The underline button is acting weird, when you press it and no text is selected, the next typed text will be underlined but the button won't look pressed. If you toggle it the next typed text won't get underlined but the button will look pressed.
  • Under both Opera and Chrome: When you press enter, the scroll-bar won't follow
  • Under Opera and Safari, sometimes, you can't un-highlight text when it's pasted from word
  • Under Firefox, if you first click on the background color button and then type text, the text will not be highlighted

Theses bugs happen under both these versions of the RadEditor
v2011.2.712.40
v2011.1.519.35

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 19 Jul 2011, 03:55 PM
Hello Edward T.,

Straight to the points:
1) Thank you for reporting this glitch.
2) I am aware of this behavior and it is already logged for improvement
3) I was unable to reproduce this problem Could you, please, open a support ticket and send a sample Word document along with steps to reproduce the problem.
4) You can fix it using the following code:
<telerik:RadEditor ID="RadEditor1" runat="server" OnClientCommandExecuting="OnClientCommandExecuting">
</telerik:RadEditor>
<script type="text/javascript">
    function OnClientCommandExecuting(editor, args) {
        var commandName = args.get_commandName();
        if(commandName == "BackColor") {
            if($telerik.isFirefox) {
                var color = args.get_value();
                var editDocument = editor.get_document();
  
                editor.setFocus();
                editDocument.execCommand('usecss', false, false);
                result = editDocument.execCommand('hilitecolor', false, color);
  
                args.set_cancel(true);
            }
        }
    }
</script>


Kind regards,
Rumen
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Editor
Asked by
Edward T.
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or