Fix BCodeEdit text insertion