Editor: fix sample text when key missing (#2980)

This commit is contained in:
Richard Schreiber
2022-12-15 16:20:11 +01:00
committed by GitHub
parent 5e963d87d9
commit b31b2d34c0

View File

@@ -256,7 +256,7 @@ var editor = {
} else if (d.content === "other_i18n") {
o.text_i18n = d.text_i18n
o.setText(d.text_i18n[Object.keys(d.text_i18n)[0]]);
} else {
} else if (d.content) {
o.setText(editor._get_text_sample(d.content));
}
if (d.locale) {