We should have a mw.hook event for when wpTextbox1's content is used (to be used by extensions providing WYSIWYG/code highlighting etc. functionality which need to update it).
This could also replace the old deprecated 'LivePreviewPrepare' even fired on $(mw).
Brief discussion about this: https://gerrit.wikimedia.org/r/#/c/74314/1/resources/mediawiki.action/mediawiki.action.edit.preview.js
Version: 1.22.0
Severity: normal