That's brilliant. They have found a way to lock in free software. It's good that they have shown their cards now before Europe has moved to them for being an open source alternative.
Since 2016, ONLYOFFICE has distributed its software under the terms of the GNU Affero General Public License v3 (AGPLv3),
https://github.com/ONLYOFFICE#%EF%B8%8F-legal-note
https://en.wikipedia.org/wiki/GNU_Affero_General_Public_License