Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents an entity in editor. An entity is an HTML element with special CSS classes and will be treated as an atom from the editor. Editor provides basic operations and will trigger related events to let plugins know that there is operation target to an entity. Plugin can insert/remove an entity, handle entity events, query entities within the editor. Plugin can also set an entity to be readonly so that user can't modify content within an entity.

Hierarchy

  • Entity

Index

Properties

Properties

id

id: string

Id of this entity, generated by editor code and will be unique within an editor

isReadonly

isReadonly: boolean

Whether this is a readonly entity

type

type: string

Type of this entity. Specified when insert an entity, can be an valid CSS class-like string.

wrapper

wrapper: HTMLElement

The wrapper DOM node of this entity which holds the info CSS classes of this entity

Generated using TypeDoc