Skip to content

Commit

Permalink
Merge pull request #47 from aleho/master
Browse files Browse the repository at this point in the history
Allow placeholder to be translated
  • Loading branch information
neSpecc authored Dec 4, 2024
2 parents cae470f + 50ab6ef commit 84b7d56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@editorjs/raw",
"version": "2.5.0",
"version": "2.5.1",
"keywords": [
"codex editor",
"raw",
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default class RawTool {
this.api = api;
this.readOnly = readOnly;

this.placeholder = config.placeholder || RawTool.DEFAULT_PLACEHOLDER;
this.placeholder = api.i18n.t(config.placeholder || RawTool.DEFAULT_PLACEHOLDER);

this.CSS = {
baseClass: this.api.styles.block,
Expand Down

0 comments on commit 84b7d56

Please sign in to comment.