|
|
@ -812,9 +812,13 @@ define([
|
|
|
|
});
|
|
|
|
});
|
|
|
|
$(Env.ifrWindow.document).on('selectionchange', function() {
|
|
|
|
$(Env.ifrWindow.document).on('selectionchange', function() {
|
|
|
|
removeCommentBubble(Env);
|
|
|
|
removeCommentBubble(Env);
|
|
|
|
var applicable = Env.editor.plugins.comments.isApplicable();
|
|
|
|
var comments = Env.editor.plugins.comments;
|
|
|
|
if (!applicable || !isEditable(Env.ifrWindow.document)) { return; }
|
|
|
|
var applicable = comments.isApplicable();
|
|
|
|
|
|
|
|
if (!applicable || !isEditable(Env.ifrWindow.document)) {
|
|
|
|
|
|
|
|
return void comments.command.setState(0);
|
|
|
|
|
|
|
|
}
|
|
|
|
addCommentBubble(Env);
|
|
|
|
addCommentBubble(Env);
|
|
|
|
|
|
|
|
comments.command.setState(2);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|