File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import * as browserEvents from '../browser_events.js';
88import { getFocusManager } from '../focus_manager.js' ;
99import { IFocusableNode } from '../interfaces/i_focusable_node.js' ;
1010import { IFocusableTree } from '../interfaces/i_focusable_tree.js' ;
11+ import { Msg } from '../msg.js' ;
1112import * as touch from '../touch.js' ;
1213import * as dom from '../utils/dom.js' ;
1314import { Rect } from '../utils/rect.js' ;
@@ -56,6 +57,10 @@ export class CommentEditor implements IFocusableNode {
5657 ) as HTMLTextAreaElement ;
5758 this . textArea . setAttribute ( 'tabindex' , '-1' ) ;
5859 this . textArea . setAttribute ( 'dir' , this . workspace . RTL ? 'RTL' : 'LTR' ) ;
60+ this . textArea . setAttribute (
61+ 'placeholder' ,
62+ Msg [ 'WORKSPACE_COMMENT_DEFAULT_TEXT' ] ,
63+ ) ;
5964 dom . addClass ( this . textArea , 'blocklyCommentText' ) ;
6065 dom . addClass ( this . textArea , 'blocklyTextarea' ) ;
6166 dom . addClass ( this . textArea , 'blocklyText' ) ;
Original file line number Diff line number Diff line change @@ -636,7 +636,6 @@ export function registerCommentCreate() {
636636 if ( ! workspace ) return ;
637637 eventUtils . setGroup ( true ) ;
638638 const comment = new RenderedWorkspaceComment ( workspace ) ;
639- comment . setPlaceholderText ( Msg [ 'WORKSPACE_COMMENT_DEFAULT_TEXT' ] ) ;
640639 comment . moveTo (
641640 svgMath . screenToWsCoordinates (
642641 workspace ,
You can’t perform that action at this time.
0 commit comments