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

Focus problem with Real Time HTML View module

4 Answers 51 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Trevor
Top achievements
Rank 1
Trevor asked on 18 Feb 2014, 01:10 AM
A customer has reported a problem with the Real-Time Html View module. The behavior can be seen using the Telerik demo editor.


Go here to access the editor with the Real-Time Html View module enabled:

   http://demos.telerik.com/aspnet-ajax/editor/examples/builtinmodules/defaultcs.aspx


Steps to reproduce the problem:


1. switch to HTML view

2. delete everything in HTML view

3. switch back to Design view

4. click in the Design view area and start typing.


After a few seconds of typing, the focus will shift to the Real-Time Html View area. Anything you have typed in the design window will be lost.


Can you offer a solution to this problem?

Thanks!

4 Answers, 1 is accepted

Sort by
0
Chad
Top achievements
Rank 1
answered on 18 Feb 2014, 03:52 PM
We are also seeing this issue. 
0
Chad
Top achievements
Rank 1
answered on 18 Feb 2014, 03:58 PM
On a similar note it's even happening when we are switching between html and design in the normal editor.
0
Accepted
Ianko
Telerik team
answered on 19 Feb 2014, 11:48 AM
Hi Trevor,

I can confirm that the problem is reproducible only when switching from HTML to Design mode. The problem is relater to a timeout handler that populates the HTML view module.

You can workaround the problem by overriding the initialize method of the module:
<telerik:RadEditor runat="server" ID="RadEditor1">
    <Modules>
        <telerik:EditorModule Name="RadEditorHtmlInspector" />
    </Modules>
</telerik:RadEditor>
 
<script type="text/javascript">
    Telerik.Web.UI.Editor.Modules.RadEditorHtmlInspector.prototype.set_visible = function (bVisible) {
        Telerik.Web.UI.Editor.Modules.RadEditorHtmlInspector.callBaseMethod(this, 'set_visible', [bVisible]);
    };
</script>

Because of this report and the shared experience I am updating your Telerik points.

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 UI for ASP.NET AJAX, subscribe to the blog feed now.
0
Trevor
Top achievements
Rank 1
answered on 19 Feb 2014, 05:45 PM
This solves the problem for us.  Thanks.
Tags
Editor
Asked by
Trevor
Top achievements
Rank 1
Answers by
Chad
Top achievements
Rank 1
Ianko
Telerik team
Trevor
Top achievements
Rank 1
Share this question
or