Register a new handler for the viewer. This needs to be called before the viewer is initialized to ensure the handler is available. So this should be called from an initialization script (OCP\Util::addInitScript).
OCP\Util::addInitScript
The handler to register
if the handler is invalid
Register a new handler for the viewer. This needs to be called before the viewer is initialized to ensure the handler is available. So this should be called from an initialization script (
OCP\Util::addInitScript).