// TODO: Research if there is a way to disable languageTool & Grammarly extensions in CKEditor /** * Collection of all grammar checking services in the document * * We dispatch relevant window messages to all services registered here. */ let besServices = [] window.addEventListener('resize', () => besServices.forEach(service => service.onReposition()) ) /************************************************************************************************** * * Base class for all grammar-checking services * * This class provides properties and implementations of methods common to all types of HTML * controls. * * This is an intermediate class and may not be used directly in client code. * *************************************************************************************************/ class BesService { /** * Constructs class. * * @param {Element} hostElement The element in DOM tree we are providing grammar-checking service * for * @param {Element} textElement The element in DOM tree that hosts coordinate-measurable clone of * the text to proof. Same as hostElement for
, separate for *