Skip to content

Commit 31dae4b

Browse files
authored
Merge pull request #22 from topcoder-platform/develop
v1.6
2 parents 6a15096 + 7fe12ef commit 31dae4b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

js/topcodereditor.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,7 @@
542542
var countOfRemainingChars = maxCommentLength;
543543
var text = cm.getValue();
544544
if(text != null && text.length > 0) {
545+
text = gdn.normalizeText(text);
545546
countOfRemainingChars = maxCommentLength - text.length;
546547
if(countOfRemainingChars < 0) {
547548
countOfRemainingChars = 0;
@@ -553,6 +554,7 @@
553554
var countOfRemainingChars = maxCommentLength;
554555
var text = cm.getValue();
555556
if(text != null && text.length > 0) {
557+
text = gdn.normalizeText(text);
556558
countOfRemainingChars = maxCommentLength - text.length;
557559
if(countOfRemainingChars < 0) {
558560
countOfRemainingChars = 0;
@@ -575,6 +577,7 @@
575577
var messageContainer = $(frm).find('.editor-statusbar .message');
576578

577579
var text = cm.getValue();
580+
text = gdn.normalizeText(text);
578581
if(text.length > 0 && text.length <= maxCommentLength) {
579582
$(editorContainer).removeClass('error');
580583
$(messageContainer).text('');

0 commit comments

Comments
 (0)