There are many plants that produce edible flowers and are safe to eat if they are grown without the use of pesticides.
A good edging plant, and one that thrives in window boxes, hanging baskets and places that need a summer groundcover, is "Portulaca grandiflora."