formatBlock types should also be replaced inside selection