Skip to content

Commit

Permalink
Remove comment length limit
Browse files Browse the repository at this point in the history
  • Loading branch information
GarboMuffin committed Dec 30, 2023
1 parent b79d5ae commit 111ad0b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
7 changes: 0 additions & 7 deletions core/scratch_block_comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,6 @@ Blockly.ScratchBlockComment.TEXTAREA_OFFSET = 12;
*/
Blockly.ScratchBlockComment.MAX_LABEL_LENGTH = 12;

/**
* Maximum character length for comment text.
* @private
*/
Blockly.ScratchBlockComment.COMMENT_TEXT_LIMIT = 8000;

/**
* Width that a minimized comment should have.
* @private
Expand Down Expand Up @@ -226,7 +220,6 @@ Blockly.ScratchBlockComment.prototype.createEditor_ = function() {
var textarea = document.createElementNS(Blockly.HTML_NS, 'textarea');
textarea.className = 'scratchCommentTextarea scratchCommentText';
textarea.setAttribute('dir', this.block_.RTL ? 'RTL' : 'LTR');
textarea.setAttribute('maxlength', Blockly.ScratchBlockComment.COMMENT_TEXT_LIMIT);
textarea.setAttribute('placeholder', Blockly.Msg.WORKSPACE_COMMENT_DEFAULT_TEXT);
body.appendChild(textarea);
this.textarea_ = textarea;
Expand Down
6 changes: 0 additions & 6 deletions core/workspace_comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,6 @@ Blockly.WorkspaceComment = function(workspace, content, height, width, minimized
*/
Blockly.WorkspaceComment.MAX_LABEL_LENGTH = 12;

/**
* Maximum character length for comment text.
* @private
*/
Blockly.WorkspaceComment.COMMENT_TEXT_LIMIT = 8000;

/**
* Dispose of this comment.
* @package
Expand Down
1 change: 0 additions & 1 deletion core/workspace_comment_render_svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ Blockly.WorkspaceCommentSvg.prototype.createEditor_ = function() {
var textarea = document.createElementNS(Blockly.HTML_NS, 'textarea');
textarea.className = 'scratchCommentTextarea scratchCommentText';
textarea.setAttribute('dir', this.RTL ? 'RTL' : 'LTR');
textarea.setAttribute('maxlength', Blockly.WorkspaceComment.COMMENT_TEXT_LIMIT);
textarea.setAttribute('placeholder', Blockly.Msg.WORKSPACE_COMMENT_DEFAULT_TEXT);
body.appendChild(textarea);
this.textarea_ = textarea;
Expand Down

0 comments on commit 111ad0b

Please sign in to comment.