tinymce.Annotator

This is the annotator api.

Methods

name summary defined by
annotate() Applies the annotation at the current selection using data tinymce.Annotator
annotationChanged() Executes the specified callback when the current selection matches the annotation or not. tinymce.Annotator
getAll() Retrieve all the annotations for a given name tinymce.Annotator
register() Registers a specific annotator by name tinymce.Annotator

Methods

annotate

annotate(name:String, data:Object)

Applies the annotation at the current selection using data

Parameters

annotationChanged

annotationChanged(name:String, callback:function)

Executes the specified callback when the current selection matches the annotation or not.

Parameters

getAll

getAll(name:String):Object

Retrieve all the annotations for a given name

Parameters
Return value

register

register(name:String, settings:Object)

Registers a specific annotator by name

Parameters

Can't find what you're looking for? Let us know.

Except as otherwise noted, the content of this page is licensed under the Creative Commons BY-NC-SA 3.0 License, and code samples are licensed under the Apache 2.0 License.