Add main func to test webkit2 editor