Skip to content

Commit

Permalink
INT-2957: manage attribute id
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo-pomili committed Dec 19, 2023
1 parent 9b1ad6a commit 384e3ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/ts/component/Editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,10 @@ class TinyMceEditor extends HTMLElement {
// load
const target = document.createElement('textarea');
target.value = this.textContent ?? '';
const attrId = this.attributes.getNamedItem('id')?.value;
if (attrId) {
target.id = attrId;
}
if (this.placeholder !== null) {
target.placeholder = this.placeholder;
}
Expand Down

0 comments on commit 384e3ea

Please sign in to comment.