Description
Steps to reproduce:
- Edit a page in-place with the BlockNote editor and insert a macro, e.g. a success message with the title "bar".
- Select the macro with a single click and click the Edit button from the toolbar.
- Change the macro title to "baz" and submit.
- Without changing the selection, undo (Ctrl+Z).
- Click again the Edit button from the toolbar.
Expected results: the macro edit modal shows the macro call restored by the undo (title "bar"), and submitting it updates that macro call.
Actual results: the macro edit modal shows the macro call from before the undo (title "baz"), and submitting it writes back the undone changes. The same happens on redo (Ctrl+Y). Changing the selection (e.g. clicking the macro again) fixes the problem, which is why double clicking the macro works fine.
The toolbar Edit button reads the selected macro call when it is rendered, and the toolbar is not rendered again when the selected block is modified without changing the selection.
Attachments
Issue Links
- relates to
-
XWIKI-24244 The edited content is not re-rendered after a macro call is updated
-
- In Progress
-
-
XWIKI-24237 Provide a button on the context toolbar to edit the selected macro
-
- Closed
-