mediawiki.action.edit: Support dynamically inserted form fields

This fixes CharInsert in LQT. LQT dynamically creates its own text boxes
and this code should take that into account.

Bug: 41220
Change-Id: Id9469f9dfcbb92854780c63252cd9c5069e94487
Merge "mediawiki.action.edit: Support dynamically inserted form fields"