Skip to content

Commit

Permalink
configurable placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
johnpuddephatt committed May 11, 2024
1 parent a21f7e4 commit ed5f6ad
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
6 changes: 5 additions & 1 deletion lib/guten-tap.js
Original file line number Diff line number Diff line change
Expand Up @@ -19020,6 +19020,10 @@ const nw = {
editable: {
default: !0
},
placeholder: {
type: String,
default: "Type / to choose a block"
},
editorClass: {
type: String
},
Expand Down Expand Up @@ -19111,7 +19115,7 @@ const nw = {
openOnClick: !1
}),
pv.configure({
placeholder: "Type / to choose a block"
placeholder: this.placeholder
}),
Db.configure({
types: this.blockWidthTypes
Expand Down
2 changes: 1 addition & 1 deletion lib/guten-tap.umd.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gutentap",
"version": "0.1.87",
"version": "0.1.88",
"private": false,
"type": "module",
"files": [
Expand Down
6 changes: 5 additions & 1 deletion src/components/GutenTap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,10 @@ export default {
editable: {
default: true,
},
placeholder: {
type: String,
default: "Type / to choose a block",
},
editorClass: {
type: String,
},
Expand Down Expand Up @@ -452,7 +456,7 @@ export default {
openOnClick: false,
}),
Placeholder.configure({
placeholder: "Type / to choose a block",
placeholder: this.placeholder,
}),
BlockWidth.configure({
types: this.blockWidthTypes,
Expand Down

0 comments on commit ed5f6ad

Please sign in to comment.