Closed flaminestone closed 4 years ago
I'm also having a lot of trouble with some APIs returning minified data. I think those core API methods and properties shouldn't be minified. For example, most of the methods of the asc_docs_api class are minified. Please don't minify those public methods and properties, so we can have access to more features of the editor through plugins.
@flaminestone any chance you guys could change it to not obfuscate the code. We really need to develop more advanced plugins but the obfuscated property names which get returned are really blocking us. Note: we have a corporate license.
@tsmgodoi, I agree with you, this problem really complicates plugin development. We will fix it in one of the upcoming versions. If you have a corporate license, you can write to sales@onlyoffice.com to speed up this process.
@flaminestone, I've managed to build the web-apps and sdkjs modules not obfuscating the js code, but minimizing it. The PR https://github.com/ONLYOFFICE/web-apps/pull/405 contains the changes I did to the web-apps to accomplish it. As for the sdkjs module, you can parameterize the grunt command with "--level=WHITESPACE_ONLY", so the closure-compiler will not obfuscate the code. We really could use those changes, because we're developing more complex plugins, which will need access to some of the obfuscated APIs.
tsmgodoi, we do not open all api, because not all methods are safe to use, calling "whatever". Always help/expand api for the necessary functionality. please contact us
Method "GetCurrentContentControlPr" return minified data. I think, it is wrong behaveor, data is must be full
Return example:
Plugin code example
Version: 5.3.2 (build:20)