We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9b1ad6a + 561fcdb commit 684c7faCopy full SHA for 684c7fa
CHANGELOG.md
@@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
7
## Unreleased
8
9
+### Fixed
10
+- The `id` attribute was not being used as the id for the editor.
11
+
12
## 2.0.2 - 2023-03-27
13
14
### Fixed
src/main/ts/component/Editor.ts
@@ -230,6 +230,10 @@ class TinyMceEditor extends HTMLElement {
230
// load
231
const target = document.createElement('textarea');
232
target.value = this.textContent ?? '';
233
+ const attrId = this.attributes.getNamedItem('id')?.value;
234
+ if (attrId) {
235
+ target.id = attrId;
236
+ }
237
if (this.placeholder !== null) {
238
target.placeholder = this.placeholder;
239
}
0 commit comments