major
minor
defect
major
minor
When editing TL-Doc pages, it is sometimes impossible to save the page. No error message appears, but the content reverts to the state it was in before the change. All new changes are lost. Currently, the editor sends the data during a blur event, which is sometimes slower than the actual save operation. You can also intentionally trigger this error by adding a timeout to the expression `services.form.sendValueUpdate(content, controlId, data, false, null);` in `/com.top_logic.layout.wysiwyg/webapp/script/wysiwyg.js` within `editor.on('blur', function(evt)` with a timeout.
Improvement
Instead of listening for the `blur` event, we now listen for the `change` event to capture all changes in a timely manner. To prevent a request from being sent for every minor change, the `services.ajax.executeOrUpdateLazy ` function is used here. The changes are then only sent to the server when the form is saved.
Test
Edit pages in TL-Doc and save them from time to time. No changes should be lost.