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

https://wikia-inc.atlassian.net/browse/VE-1523
Is this "this.fragment" needed?