Class: redoUndo
plugins/redo-undo.redoUndo
Custom process Redo and Undo functionality
Hierarchy
-
↳
redoUndo
constructor
new redoUndo(jodit
): redoUndo
Parameters
Name | Type |
---|---|
jodit |
IJodit |
Returns
Inherited from
Defined in
STATUSES
Static
STATUSES: Object
= STATUSES
Type declaration
Name | Type |
---|---|
beforeDestruct |
"beforeDestruct" |
beforeInit |
"beforeInit" |
destructed |
"destructed" |
ready |
"ready" |
Inherited from
Defined in
src/core/component/component.ts#41
async
async: IAsync
Inherited from
Defined in
src/core/component/component.ts#45
buttons
buttons: undefined
| IPluginButton
[]
Overrides
Defined in
src/plugins/redo-undo/redo-undo.ts#42
hasStyle
hasStyle: boolean
= false
Plugin have CSS style and it should be loaded
Inherited from
Defined in
jodit
jodit: IJodit
Parent View element
Inherited from
Defined in
src/core/component/view-component.ts#21
ownerWindow
ownerWindow: Window
= window
The window in which jodit was created
Inherited from
Defined in
src/core/component/component.ts#110
requires
Static
requires: string
[] = []
Inherited from
Defined in
styles
styles: CanUndef
<string
>
Additional plugin styles can be written simply as inline styles
class A extends Jodit.modules.Plugin {
styles = 'h1{color: red}';
}
Will only be applied if the plugin is activated
Inherited from
Defined in
uid
Readonly
uid: string
Inherited from
Defined in
src/core/component/component.ts#60
componentName
get
componentName(): string
Returns
string
Inherited from
Plugin.componentName
Defined in
src/core/component/component.ts#47
componentStatus
get
componentStatus(): ComponentStatus
Current component status
Returns
Inherited from
Plugin.componentStatus
Defined in
src/core/component/component.ts#211
set
componentStatus(componentStatus
): void
Setter for current component status
Parameters
Name | Type |
---|---|
componentStatus |
ComponentStatus |
Returns
void
Inherited from
Plugin.componentStatus
Defined in
src/core/component/component.ts#218
defaultTimeout
get
defaultTimeout(): number
Returns
number
Inherited from
Plugin.defaultTimeout
Defined in
src/core/component/view-component.ts#30
isDestructed
get
isDestructed(): boolean
Component was destructed
Returns
boolean
Inherited from
Plugin.isDestructed
Defined in
src/core/component/component.ts#153
isInDestruct
get
isInDestruct(): boolean
The component is currently undergoing destructuring or has already been destroyed.
Those. you should not hang new events on him now or do anything else with him.
Returns
boolean
Inherited from
Plugin.isInDestruct
Defined in
src/core/component/component.ts#161
isReady
get
isReady(): boolean
Component is ready for work
Returns
boolean
Inherited from
Plugin.isReady
Defined in
src/core/component/component.ts#146
j
get
j(): T
Shortcut for this.jodit
Returns
T
Inherited from
Plugin.j
Defined in
src/core/component/view-component.ts#26
od
get
od(): Document
Shortcut for this.ownerDocument
Returns
Inherited from
Plugin.od
Defined in
src/core/component/component.ts#103
ow
get
ow(): Window
Returns
Inherited from
Plugin.ow
Defined in
src/core/component/component.ts#111
ownerDocument
get
ownerDocument(): Document
The document in which jodit was created
Returns
Inherited from
Plugin.ownerDocument
Defined in
src/core/component/component.ts#96
bindDestruct
bindDestruct(component
): redoUndo
Bind destructor to some View
Parameters
Name | Type |
---|---|
component |
IComponent <IViewBased <IViewOptions >> |
Returns
Inherited from
Defined in
src/core/component/component.ts#171
className
className(): string
Returns
string
Inherited from
Defined in
destruct
destruct(): void
Returns
void
Inherited from
Defined in
get
get<T
>(chain
, obj?
): Nullable
<T
>
Safe get any field
Type parameters
Name |
---|
T |
Parameters
Name | Type | Description |
---|---|---|
chain |
string |
the path to be traversed in the obj object |
obj? |
IDictionary |
the object in which the value is searched |
Returns
Nullable
<T
>
Example
private a = {
b: {
c: {
e: {
g: {
color: 'red'
}
}
}
}
}
this.get('a.b.c.e.g.color'); // Safe access to color
// instead using optionsl chaining
this?.a?.b?.c?.e?.g?.color
Inherited from
Defined in
src/core/component/component.ts#139
getFullElName
getFullElName(elementName
): string
Calc BEM element class name
Parameters
Name | Type | Description |
---|---|---|
elementName |
string |
element name in the bem classification |
Returns
string
Inherited from
Defined in
src/core/component/component.ts#66
getFullElName(elementName
, mod
): string
Parameters
Name | Type |
---|---|
elementName |
string |
mod |
string |
Returns
string
Inherited from
Defined in
src/core/component/component.ts#67
getFullElName(elementName
, mod
, modValue
): string
Parameters
Name | Type |
---|---|
elementName |
string |
mod |
string |
modValue |
string | boolean |
Returns
string
Inherited from
Defined in
src/core/component/component.ts#68
hookStatus
hookStatus(status
, callback
): void
Adds a handler for changing the component's status
Parameters
Name | Type | Description |
---|---|---|
status |
ComponentStatus |
the status at which the callback is triggered |
callback |
(component : redoUndo ) => void |
a function that will be called when the status is status |
Returns
void
Inherited from
Defined in
src/core/component/component.ts#266
i18n
i18n(text
, ...params
): string
Parameters
Name | Type |
---|---|
text |
string |
...params |
(string | number )[] |
Returns
string
Inherited from
Defined in
src/core/component/view-component.ts#34
init
init(jodit
): void
Parameters
Name | Type |
---|---|
jodit |
IJodit |
Returns
void
Inherited from
Defined in
isInstanceOf
isInstanceOf<T
>(c
, constructorFunc
): c is T
Type parameters
Name | Type |
---|---|
T |
extends Component |
Parameters
Name | Type |
---|---|
c |
unknown |
constructorFunc |
Function |
Returns
c is T
Inherited from
Defined in
src/core/component/component.ts#284
setParentView
setParentView(jodit
): redoUndo
Attach component to View
Parameters
Name | Type |
---|---|
jodit |
IJodit |
Returns
Inherited from
Defined in
src/core/component/view-component.ts#41
setStatus
setStatus(componentStatus
): void
Set component status
Parameters
Name | Type | Description |
---|---|---|
componentStatus |
ComponentStatus |
component status |
Returns
void
See
ComponentStatus