A KTextEditor implementation may implement an Editor extension interface, but it does not need to.
So as a KTextEditor user you have to cast the Editor to the desired interface and then check, whether the cast returns NULL or the valid interface.
Use qobject_cast to cast a Editor editor into the DesiredExtensionInterface, example:
- See also
The following classes are a list of all available Editor extension interfaces.