File tree 3 files changed +8
-0
lines changed
3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -524,6 +524,9 @@ const styles = `
524
524
stroke-width: 3px;
525
525
}
526
526
527
+ .blocklyCommentText::placeholder {
528
+ font-style: italic;
529
+ }
527
530
528
531
.blocklyCommentTextarea {
529
532
background-color: #fef49c;
Original file line number Diff line number Diff line change @@ -129,3 +129,7 @@ Blockly.ContextMenuRegistry.registry.unregister("blockDelete");
129
129
contextMenuItems . registerDeleteBlock ( ) ;
130
130
Blockly . ContextMenuRegistry . registry . unregister ( "workspaceDelete" ) ;
131
131
contextMenuItems . registerDeleteAll ( ) ;
132
+ Blockly . comments . CommentView . defaultCommentSize = new Blockly . utils . Size (
133
+ 200 ,
134
+ 200
135
+ ) ;
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ export class ScratchCommentBubble extends Blockly.comments.CommentView {
17
17
this . sourceBlock = sourceBlock ;
18
18
this . disposing = false ;
19
19
this . id = Blockly . utils . idGenerator . genUid ( ) ;
20
+ this . setPlaceholderText ( Blockly . Msg . WORKSPACE_COMMENT_DEFAULT_TEXT ) ;
20
21
this . getSvgRoot ( ) . setAttribute (
21
22
"style" ,
22
23
`--colour-commentBorder: ${ sourceBlock . getColourTertiary ( ) } ;`
You can’t perform that action at this time.
0 commit comments