major
minor
defect
major
minor
Images can be uploaded in the WYSIWYG editor. Initially, these appear inline in the source code and are then replaced by "short" references.
This does not happen under the following circumstances:
- Inserting text.
- Uploading an image.
- No further changes or even clicking in the WYSIWYG editor
- Saving the change.
In this case, the original image is still present in the source code.
Although the tl:StructuredTextControl responds to the upload and sends a response, this response does not appear to be loaded on the client.
Tested in FF 96.0.3.
Normally, the client listens for every `change` event and prepares it so that the most recent changes are saved when the page is saved. When uploading the image, a `change` event is generated, but initially it only includes the original image. After the image is successfully uploaded, the image’s URL in the editor does change, but the editor does not fire a `change` event.
Improvement
After uploading an image, a `change` event is manually triggered again.
Test
Upload an image to the editor and save it immediately without making any further changes. The image must be uploaded and saved correctly—that is, it must not be semi-transparent, and the URL must not be in base64 format.