only allow alphanumeric and period characters in contenteditable