1

I have a <div> based ACE editor.

<label for="editorId">Content</label><div id="editorId></div>

Is it possible to make <label> with for attribute work without adding onclick event?

TN.
  • 18,874
  • 30
  • 99
  • 157

1 Answers1

1

yes, you need to assign id to the hidden textarea used by ace

editor.container.id = ""; // remove id from container div
editor.textInput.getElement().id = "editorId"; // assign id to the textarea 
a user
  • 23,300
  • 6
  • 58
  • 90