I’m submitting a…
- [ ] Bug report
Current behavior
Restoring unsaved changes doesn’t work proper on Edit Content page within Squidex UI - Content.
For the “Author bio” field which is Custom TinyMce html external editor.
After you press Yes
It restores all unsaved changes in regular fields, except the text in the custom editor, “Author bio” field.
Look like the data is lost.
In order to display these changes in that editor - I have to switch to another tab, e.g. References, and come back to Editor tab. Then unsaved changes become displayed there.
Expected behavior
The changes should be directly displayed in the editor without switching tabs.
Ideas
The issue is seems to be in reloading or re-rendering the CustomEditor.
So the fix might be to force reload/re-render or re-call the CustomEditor by its external link, after pressing the “Yes, load unsaved changes”.
Minimal reproduction of the problem
- Create a schema with a HTML field that has an external Editor Url , to a Custom TinyMce Editor, of HTML type, that renders the editor “inline” on the “Edit Content” page (and does not open the editor on new page). And some Input type fields.
- Create a content item by that schema’s table.
- Create new changes in the fields, do not press Save.
- Reload the browser page.
- Press Yes on popup “You have unsaved changes. Do you want to load them now?”. And see them not restored in the field with CustomEditor.
- Switch to References tab, and go back to Editor. See unsaved changes restored.
Environment
- [ ] Cloud version
Version: 7.2
Browser:
- [ ] Chrome (desktop)
- [ ] Firefox
Other:
sorry, limit only for one screenshot for new users.