Skip to content

Commit

Permalink
πŸ› text btn
Browse files Browse the repository at this point in the history
  • Loading branch information
fabienwnklr committed Sep 28, 2023
1 parent bf37850 commit 85c6147
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Drawer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,8 @@ export class Drawer extends History {
return new Promise((resolve, reject) => {
try {
if (this.$toolbar && !this.$textBtn) {
const $textBtn = stringToHTMLElement<HTMLButtonElement>(this.textBtnHtml());
const textBtn = /*html*/`<button title="${'Text zone'}" class="btn">${TextIcon}</button>`;
const $textBtn = stringToHTMLElement<HTMLButtonElement>(textBtn);
this.$textBtn = $textBtn;

this.$toolbar.appendChild(this.$textBtn);
Expand Down

0 comments on commit 85c6147

Please sign in to comment.