Which is preferred?
editor.on('open', function(){ const editor = this; const displayNode$ = $(editor.displayNode()); displayNode .find('#formErrors') .empty(); });
editor.on('open', function () { const editor = this; editor .template() .find('#formErrors') .empty() });
Probably displayNode(). That would allow it to work even if a template isn't specified.
displayNode()
Allan
It looks like you're new here. If you want to get involved, click one of these buttons!
Answers
Probably
displayNode()
. That would allow it to work even if a template isn't specified.Allan