I want to interact with my document editor and invoke the editor's global search function. How can I use the callCommon or executeMethod method to achieve this requirement?
the code doesn't work
this.connector.callCommand(function() {
var oDocument = Api.GetDocument();
var aSearch = oDocument.Search("xxx"); // xxx is someting to search
aSearch[0].SetBold(true);
}, function() { console.log("callback command"); });
I want to interact with my document editor and invoke the editor's global search function. How can I use the callCommon or executeMethod method to achieve this requirement? the code doesn't work
this.connector.callCommand(function() { var oDocument = Api.GetDocument(); var aSearch = oDocument.Search("xxx"); // xxx is someting to search aSearch[0].SetBold(true); }, function() { console.log("callback command"); });