fix: header block is not translatable
This commit is contained in:
parent
c4aa49743e
commit
cafa9fdcad
1 changed files with 1 additions and 1 deletions
|
|
@ -104,7 +104,7 @@ export default class Header extends Block {
|
|||
this._data = this.normalizeData(data);
|
||||
|
||||
if (data.text !== undefined) {
|
||||
let text = this._data.text || "";
|
||||
let text = __(this._data.text) || "";
|
||||
const contains_html_tag = /<[a-z][\s\S]*>/i.test(text);
|
||||
this._element.innerHTML = contains_html_tag
|
||||
? text
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue