Sample plugin that add non persistent highlights on each paragraph:
- when the document is opened (invoking an AuthorOperation from the JavaScript code, on the sync.api.Workspace.EventType.EDITOR_LOADED event)
- when the document is edited (using an AuthorDocumentFilter)
The highlights are added with some attributes that are matched in CSS to assign a custom style to these highlights.
The CSS file is loaded using a WebappStaticResourcesFolder extension.