Optional
logNotifies the AcrolinxPlugin that a check has finished. If a global check has been performed, that's a good time to clean up states belonging to previous checks.
The sidebar has finished initialization. Now the sidebar is ready for checking.
Can contain an error if the initialization failed.
Optional
onOptional
onNotifies the AcrolinxPlugin that a live search has finished.
The live search result.
Optional
onOptional
onUILanguageOptional
openOptional
openOptional
openThe integration should replace the matches belonging to the check of the checkId by its replacements.
Note that in most cases you are able to reuse much of the implementation for selectRanges.
The id of the check. You get the id as result of checkGlobal.
The parts of the document, which should be replaced and its replacements.
Optional
requestThe check button has been pushed and the AcrolinxPlugin is requested to call AcrolinxSidebar.checkGlobal(). If the plugin supports checkSelection (InitParameters.supported.checkSelection), option "selection" will be set and contains a hint if the plugin should send the current selection when calling AcrolinxSidebar.checkGlobal(). Similarly if the plugin supports batchCheck (InitParameters.supported.supportsBatchChecks), option "batchCheck" will be set and the plugin should call AcrolinxSidebar.initBatchCheck().
Optional
options: RequestGlobalCheckOptionsThe integration should highlight and focus the matches belonging to the check of the checkId. For selecting ranges, different strategies can be applied. A short overview:
Search: You just search for the content-attributes of the matches. The search can be improved by some fuzzy matching and adding some characters from before and after the match to the search string. pro: easy in a simple version, more or less stateless - con: fuzzy
Mapping: At the time you call check, you keep the document content and create a one to one mapping between the document you checked and the document in your editor. This mapping needs to be kept up to date. Some editors provide interfaces to easily implement that. pro: up to 100% exact - con: can be difficult or impossible to implement, can be slow, requires a lot of memory
Indexing: Before calling check, you scatter indices in the document, which can be kept in source as well as in the requested document. These indices reduce the search space later on, so that your search will be faster and more precise. pro: fast, up to 100% precise - con: invasive, changes the source document
Combinations: You can combine all these methods to improve the positive aspects and reduce the negative aspects of each strategy.
Note: Implementing this function will be one of your core tasks while developing an Acrolinx integration.
The id of the check. You get the id as result of checkGlobal.
The parts of the document which should be highlighted.
Optional
show
The plug-in should provide this interface in window.acrolinxPlugin. These functions are called by the AcrolinxSidebar.