DomWrapperView (mention/ui)
@ckeditor/ckeditor5-mention/src/ui/domwrapperview
class
This class wraps DOM element as a CKEditor5 UI View.
It allows to render any DOM element and use it in mentions list.
Filtering
Properties
-
domElement : Element
The DOM element for which wrapper was created.
-
isOn : Boolean
Controls whether the dom wrapper view is "on". This is in line with
isOn
property.Defaults to
true
Methods
-
constructor( [ locale ], domElement )
Creates an instance of
DomWrapperView
class. -
render()
Events
-
change:isOn( eventInfo, name, value, oldValue )
Fired when the
isOn
property changed value.Parameters
eventInfo : EventInfo
An object containing information about the fired event.
name : String
Name of the changed property (
isOn
).value : Boolean
New value of the
isOn
property with given key ornull
, if operation should remove property.oldValue : Boolean
Old value of the
isOn
property with given key ornull
, if property was not set before.