Has anyone managed to change the function of Smart view the onclick for when you click on a document. i am talking about instead of downloading locally, it opens as read only. i am using office not brava
Out-of-the-box, you can get the read-only viewer on the (default) click action by installing either Brava or Content Suite viewer. If you enable them for the Office MIME types, Smart View will prefer them to the native browser functionality (download).
This behaviour can be extended by custom modules using Smart UI SDK. For example, by adding a rule matching Office documents and opening the read-only Office 365 web page (by appending "&action=view" to the URL, for example). I don't know, if there is any CS module doing that.
As far as I know, you can enable Office 365 as the default editor, but it configures the Edit button; not the default click action.
You could also post this as a feature request to be considered in a future CS update.