- Issue created by @justin2pin
Invoking once()
inside the behavior detach()
method seems unnecessary, and is preventing subsequent Ajax form submissions from correctly firing the detach()
method, in turn failing to save the CodeMirror editor's latest changes to the hidden textarea.
Add a CodeMirror editor field to a form that uses Ajax and does not refresh on every submission. Note that
detach()<code> is only called on the first submission, and any further changes in the editor will not be captured in subsequent submissions.
<h2>Next steps:</h2>
Remove unnecessary call to <code>once()
in the detach()
method.
Needs work
2.0
Code