orion.edit.model | ||
---|---|---|
![]() |
![]() |
|
orion.edit.highlighter | orion.edit.outliner |
An orion.edit.model service provides listeners on changes made to the orion.textview.TextView that powers the Orion editor.
NOTE: This section is experimental and may change in future versions.
An implementation of orion.edit.model may define zero or more functions depending on what event types it gives in its types attribute. For every event type in types, the function with the name "on" + eventType will be invoked. For example, a "ModelChanged" event type causes the the provider's onModelChanged function to be invoked.
The functions are always invoked with a single parameter, event, containing the event data that was dispatched by the TextView.
Implementations of orion.edit.model must define the following attributes:
See the source code of the orion-codemirror plugin.
![]() |
![]() |
![]() |
orion.edit.highlighter | orion.edit.outliner |