|
|
@ -316,7 +316,7 @@ define([
|
|
|
|
var oldSelection = window.getSelection();
|
|
|
|
var oldSelection = window.getSelection();
|
|
|
|
var oldRangeObj;
|
|
|
|
var oldRangeObj;
|
|
|
|
if ($(oldSelection.anchorNode).closest('.cp-comment-form').length) {
|
|
|
|
if ($(oldSelection.anchorNode).closest('.cp-comment-form').length) {
|
|
|
|
oldRange = oldSelection.getRangeAt && oldSelection.getRangeAt(0);
|
|
|
|
var oldRange = oldSelection.getRangeAt && oldSelection.getRangeAt(0);
|
|
|
|
oldRangeObj = {
|
|
|
|
oldRangeObj = {
|
|
|
|
start: oldRange.startContainer,
|
|
|
|
start: oldRange.startContainer,
|
|
|
|
startO: oldRange.startOffset,
|
|
|
|
startO: oldRange.startOffset,
|
|
|
|