Skip to content

Commit 9845a52

Browse files
committed
Fix js
1 parent ab06103 commit 9845a52

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

django_editorjs_fields/static/django-editorjs-fields/js/django-editorjs-fields.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ function initEditorJsField(field_id, config) {
8484

8585
if ("placeholder" in config) {
8686
editorConfig.placeholder = config.placeholder || "Type text..."
87+
} else {
88+
editorConfig.placeholder = "Type text..."
8789
}
8890

8991
if ("defaultBlock" in config) {
@@ -99,7 +101,7 @@ function initEditorJsField(field_id, config) {
99101
}
100102

101103
if ("i18n" in config) {
102-
editorConfig.i18n = config.i18n || false
104+
editorConfig.i18n = config.i18n || {}
103105
}
104106

105107
editorConfig.onChange = function () {

0 commit comments

Comments
 (0)