new EditBoxManager(annotManager)
Parameters:
| Name | Type | Description |
|---|---|---|
annotManager |
Core.AnnotationManager | The annotation manager instance |
Extends
- EventHandler
Methods
-
focusBox(annotation [, action])
-
Can be used to refocus the editor after changing annotation properties during editing
Parameters:
Name Type Argument Description annotationCore.Annotations.FreeTextAnnotation The annotation to focus actionstring <optional>
The action to perform when focusing -
resizeAnnotation(annotation [, focusZoom] [, shouldRender])
-
Resizes an annotation based on the size of its editor
Parameters:
Name Type Argument Default Description annotationCore.Annotations.FreeTextAnnotation The annotation to resize focusZoomnumber <optional>
The zoom level in which to resize the annotation to. Defaults to the page zoom level the annotation is on shouldRenderboolean <optional>
true Whether to render the annotation after resizing
Type Definitions
-
Range
-
Type:
- Object
Properties:
Name Type Description indexnumber the index of cursor lengthnumber the number of characters that are selected
Events
-
editorBlur
-
Triggered after an editor blurred
Parameters:
Name Type Description editorCore.Annotations.FreeTextAnnotation.RichTextEditor an instance of Editor annotationCore.Annotations.FreeTextAnnotation a freetext annotation -
editorFocus
-
Triggered after an editor is focused
Parameters:
Name Type Description editorCore.Annotations.FreeTextAnnotation.RichTextEditor an instance of Editor annotationCore.Annotations.FreeTextAnnotation a freetext annotation -
editorSelectionChanged
-
Triggered after selection in the editor changed
Parameters:
Name Type Description rangeCore.EditBoxManager.Range current selected range oldRangeCore.EditBoxManager.Range previous selected range -
editorTextChanged
-
Triggered after some text in the editor changed