diff --git a/package.json b/package.json index 9101807..2a928c5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@editorjs/header", - "version": "2.8.7", + "version": "2.8.8", "keywords": [ "codex editor", "header", diff --git a/src/index.ts b/src/index.ts index 506312c..e36face 100644 --- a/src/index.ts +++ b/src/index.ts @@ -215,12 +215,7 @@ export default class Header { * @public */ merge(data: HeaderData): void { - const newData = { - text: this.data.text + data.text, - level: this.data.level, - }; - - this.data = newData; + this._element.insertAdjacentHTML('beforeend', data.text) } /**