Skip to content

Commit

Permalink
tinymce in formatted field (wip)
Browse files Browse the repository at this point in the history
  • Loading branch information
hinanaya committed Jul 2, 2024
1 parent 035a93a commit d13c169
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion ui/fields/formatted.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,22 @@ class OBFieldFormatted extends OBField {
}
this.#init = true;

let elem = this;
this.renderComponent().then(() => {
tinymce.init({
target: this.root.querySelector('#edit'),
theme: 'silver',
plugins: 'link',
menubar: false,
toolbar: 'undo redo | bold italic | link',
branding: false
});
});
}

renderEdit() {
render(html`
<div>TODO</div>
<textarea id="edit">TODO edit</textarea>
`, this.root);
}

Expand Down

0 comments on commit d13c169

Please sign in to comment.