I'm using editor.getRange() function from the Editor Select event to get the current range of an element selected in the Editor.
In Chrome the getRange() function returns the range I would expect.
However in Internet Explorer the getRange() function return the wrong range.
Why does the same method return 2 different items? The html I'm using in the the editor is as below.
<
p
style
=
"text-align:left;"
><
strong
></
strong
>Test the range of the following field <
span
class
=
"dfw-IsMergeField dfw-EditorMergeField"
contenteditable
=
"false"
data-iscollection
=
"false"
data-name
=
"ApplicantAddress"
data-path
=
"Mallons.DomainFire.Models.MergeTemplates.FireCertTemplate.ApplicantAddress"
id
=
"mergeFieldButton"
title
=
"Applicant Address"
>ApplicantAddress</
span
> in Chrome and Explorer</
p
>
<
p
> </
p
>