Browser retro compatibility before 2020 : ||= operator #16922
Labels
resolution:wontfix
This issue will not be fixed because the team decided that for given reasons it does not make sense.
type:improvement
This issue reports a possible enhancement of an existing feature.
📝 Browser compatibility under 2020
The last version of ckeditor is not working for browser versions under 2020 because of the new operator ||= which is present only once on the ckeditor project.
This is problematic for a lot of our users that have old computers and browsers.
Please, on the function _copySelectedFragmentWithMarkers replace :
fakeMarkersRangesInsideRange[markerName] ||= writer.createRangeIn(fragment);
By :
if(fakeMarkersRangesInsideRange[markerName] == undefined){
fakeMarkersRangesInsideRange[markerName] = writer.createRangeIn(fragment);
}
And this will work like a charm for older browsers.
For more informations about the ||= operator, see :
https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Operators/Logical_OR_assignment
📃 Other details
If you'd like to see this improvement implemented, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: