Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions core/comments/comment_editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import {getFocusManager} from '../focus_manager.js';
import {IFocusableNode} from '../interfaces/i_focusable_node.js';
import {IFocusableTree} from '../interfaces/i_focusable_tree.js';
import {Msg} from '../msg.js';
import * as touch from '../touch.js';
import * as dom from '../utils/dom.js';
import {Rect} from '../utils/rect.js';
Expand Down Expand Up @@ -56,6 +57,7 @@
) as HTMLTextAreaElement;
this.textArea.setAttribute('tabindex', '-1');
this.textArea.setAttribute('dir', this.workspace.RTL ? 'RTL' : 'LTR');
this.textArea.setAttribute('placeholder', Msg['WORKSPACE_COMMENT_DEFAULT_TEXT'])

Check failure on line 60 in core/comments/comment_editor.ts

View workflow job for this annotation

GitHub Actions / lint

Replace `'placeholder',·Msg['WORKSPACE_COMMENT_DEFAULT_TEXT'])` with `⏎······'placeholder',⏎······Msg['WORKSPACE_COMMENT_DEFAULT_TEXT'],⏎····);`
dom.addClass(this.textArea, 'blocklyCommentText');
dom.addClass(this.textArea, 'blocklyTextarea');
dom.addClass(this.textArea, 'blocklyText');
Expand Down
1 change: 0 additions & 1 deletion core/contextmenu_items.ts
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,6 @@ export function registerCommentCreate() {
if (!workspace) return;
eventUtils.setGroup(true);
const comment = new RenderedWorkspaceComment(workspace);
comment.setPlaceholderText(Msg['WORKSPACE_COMMENT_DEFAULT_TEXT']);
comment.moveTo(
svgMath.screenToWsCoordinates(
workspace,
Expand Down
Loading