fix #25336: give access to raw text in plugins