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

Error when double clicking empty space

5 Answers 66 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 17 Feb 2016, 04:08 AM

I am updating a project to the latest version of Telerik UI for AJAX, and have noticed that if Idouble click on empty space below my text in the editor I get a javascript error "Unable to get property 'nextSibling' of undefined or null reference", relating to the following segment of code:

var h=function(o){while(!o.nextSibling){o=o.parentNode;
}return o.nextSibling;
}; 

As I have been unable to determine the source of this problem I am hoping you can help me out.

5 Answers, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 17 Feb 2016, 03:38 PM
Hi Daniel,

I tested the reported scenario but no JavaScript error was thrown on my side when double clicking on the empty part of the content area of the Editor. Can you take a look at the video from my test here and see whether I am missing anything? - http://screencast.com/t/fFtYZ2WDe

Can you also provide some more details on the matter as the browser in which the problem occurs and the exact steps for its reproduction?

Regards,
Vessy
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
0
Daniel
Top achievements
Rank 1
answered on 17 Feb 2016, 08:28 PM
I am using IE 11.  Some further testing shows that this problem occurs when the last element on the page is a table or list, but not when it is a paragraph, heading, or line break.  Also, if I switch to the HTML view and back the error will not occur.
0
Vessy
Telerik team
answered on 22 Feb 2016, 01:40 PM
Hi Daniel,

I am afraid I am still not able to reproduce the problem - neither with a table as a last element, nor wit a list: http://screencast.com/t/6PLu25H9k2ux

Can you, please, provide us with a sample content you use for your test as well as with the exact steps that need to be made in order to reproduce the problem?

Regards,
Vessy
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
0
Daniel
Top achievements
Rank 1
answered on 23 Feb 2016, 03:14 AM
I solved this issue by changing the ContentAreaMode to Div, which had it's own issues but I have worked through them now.  Sorry I could not locate the root cause.
0
Vessy
Telerik team
answered on 25 Feb 2016, 01:39 PM
Hi,

Not to worry, Daniel - I am glad you have found a way to work around the issue for the moment.

Should you deem anything else as a possible hindrance that we might have missed so far, do not hesitate to inform us, so that we can investigate the case further.

Regards,
Vessy
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
Tags
Editor
Asked by
Daniel
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Daniel
Top achievements
Rank 1
Share this question
or