Fix mdedit API usage