VE-1523: Insert template when selected and open the edit dialog
VE-1523: Fix a bug with expanded selection and add comments
Merge pull request #4733 from Wikia/VE-1523

VE-1523: Insert template when selected and open the edit dialog