Steps to reproduce:
- You need a working RelatedArticles extension with read more in the footer setup, also a working VE environment
- Edit a page and add some related articles (e.g. with the {{#related:}} parser tag or Cirrus, doesn't matter)
- Open this page and start VE with the "edit" key
Expected result:
The relatedArticles content should be removedand re-added, after the edit was saved (or VE was canceled)- On cancelling an edit the relatedArticles should show again.
Update:
It seems there are several problems
- There is no hook for abandoning an edit
- The hook ve.activate doesn't run before the loader shows, so it's impossible to detach the related articles widget upon clicking the edit link. Is there a hook before that?
- When appending the related articles widget back into the content on ve.deactivate it appears above the content. Expected: content should be added to DOM before hook is run.
Observed:
The read more box is hidden via css above the VE content-editable: