Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public async create(): Promise {
// Metadatas
this.editor.core.scene.metadata = this.editor.core.scene.metadata || { };
const metadatas = this.editor.core.scene.metadata;
if (!metadatas.notes)
metadatas.notes = '';
// Area
this.textArea = Tools.CreateElement('textarea', 'NOTES-TEXT-AREA', {
'width': '100%',
'height': '100%',
'resize': 'none'
});
this.textArea.textContent = metadatas.notes;
this.textArea.addEventListener('keyup', () => metadatas.notes = this.textArea.value);
this.divElement.appendChild(this.textArea);
}
}