当前位置: 首页 > 文档资料 > tinyMCE 帮助文档 >

tinymce-Annotator

优质
小牛编辑
125浏览
2023-12-01

Methods

namesummarydefined by
annotate()Applies the annotation at the current selection using datatinymce.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 nametinymce.Annotator
register()Registers a specific annotator by nametinymce.Annotator

Methods

annotate

annotate(name:String, data:Object)

Applies the annotation at the current selection using data

Parameters
  • name (String) - the name of the annotation to apply
  • data (Object) - information to pass through to this particular annotation

annotationChanged

annotationChanged(name:String, callback:function)

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

Parameters
  • name (String) - Name of annotation to listen for
  • callback (function) - Calback with (state, name, and data) fired when the annotation at the cursor changes. If state if false, data will not be provided.

getAll

getAll(name:String):Object

Retrieve all the annotations for a given name

Parameters
  • name (String) - the name of the annotations to retrieve
Return value
  • Object - an index of annotations from uid => DOM nodes

register

register(name:String, settings:Object)

Registers a specific annotator by name

Parameters
  • name (String) - the name of the annotation
  • settings (Object) - settings for the annotation (e.g. decorate)

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.

最后更新:

类似资料

  • Annotator 是一个 Elementary OS 的图像注释工具。 特性: 为图片做注释 从文件系统或剪贴板加载图像 添加形状、贴纸、文字、图画和其他注解,以突出图像的细节 添加放大镜以增强图像细节 模糊图像的部分内容以混淆数据 裁剪、调整大小和添加图像边框 控制颜色、线条粗细和字体细节 支持缩放 无限撤消/重做任何改变 输出为JPEG、PNG、TIFF、BMP、PDF和SVG图像格式 支持

  • Annotator 是一个jQuery的文本注解插件,可以包括注释、标签、用户等。

相关阅读