Class: TextEditor
Hierarchy
↳
TextEditor
Table of contents
Constructors
Properties
Accessors
Methods
- registerInnerEditor
- onCreate
- create
- load
- update
- unload
- onDestroy
- destroy
- onLoad
- onInput
- onFocus
- onEscape
- onUpdate
- onUnload
Constructors
constructor
• new TextEditor(editor
): TextEditor
Parameters
Name | Type |
---|---|
editor | IEditor |
Returns
Inherited from
Defined in
in/packages/editor/src/tool/InnerEditor.ts:28
Properties
editor
• editor: IEditor
Inherited from
Defined in
in/packages/editor/src/tool/InnerEditor.ts:20
view
• view: IGroup
Inherited from
Defined in
in/packages/editor/src/tool/InnerEditor.ts:23
editTarget
• editTarget: IText
Overrides
Defined in
in/packages/text-editor/src/TextEditor.ts:11
editDom
• editDom: HTMLDivElement
Defined in
in/packages/text-editor/src/TextEditor.ts:13
textScale
• textScale: number
Defined in
in/packages/text-editor/src/TextEditor.ts:14
config
• config: Object
Type declaration
Name | Type |
---|---|
selectAll | boolean |
Overrides
Defined in
in/packages/text-editor/src/TextEditor.ts:16
eventIds
• eventIds: IEventListenerId
[] = []
Overrides
Defined in
in/packages/text-editor/src/TextEditor.ts:20
inBody
• Protected
inBody: boolean
Defined in
in/packages/text-editor/src/TextEditor.ts:22
isHTMLText
• Protected
isHTMLText: boolean
Defined in
in/packages/text-editor/src/TextEditor.ts:23
_keyEvent
• Protected
_keyEvent: boolean
Defined in
in/packages/text-editor/src/TextEditor.ts:24
Accessors
editBox
• get
editBox(): IEditBox
Returns
Inherited from
InnerEditor.editBox
Defined in
in/packages/editor/src/tool/InnerEditor.ts:21
tag
• get
tag(): string
Returns
string
Overrides
InnerEditor.tag
Defined in
in/packages/text-editor/src/TextEditor.ts:10
Methods
registerInnerEditor
▸ registerInnerEditor(): void
Returns
void
Inherited from
InnerEditor.registerInnerEditor
Defined in
in/packages/editor/src/tool/InnerEditor.ts:9
onCreate
▸ onCreate(): void
Returns
void
Inherited from
Defined in
in/packages/editor/src/tool/InnerEditor.ts:34
create
▸ create(): void
Returns
void
Inherited from
Defined in
in/packages/editor/src/tool/InnerEditor.ts:35
load
▸ load(): void
Returns
void
Inherited from
Defined in
in/packages/editor/src/tool/InnerEditor.ts:44
update
▸ update(): void
Returns
void
Inherited from
Defined in
in/packages/editor/src/tool/InnerEditor.ts:53
unload
▸ unload(): void
Returns
void
Inherited from
Defined in
in/packages/editor/src/tool/InnerEditor.ts:56
onDestroy
▸ onDestroy(): void
Returns
void
Inherited from
Defined in
in/packages/editor/src/tool/InnerEditor.ts:64
destroy
▸ destroy(): void
Returns
void
Inherited from
Defined in
in/packages/editor/src/tool/InnerEditor.ts:65
onLoad
▸ onLoad(): void
Returns
void
Overrides
Defined in
in/packages/text-editor/src/TextEditor.ts:26
onInput
▸ onInput(): void
Returns
void
Defined in
in/packages/text-editor/src/TextEditor.ts:91
onFocus
▸ onFocus(): void
Returns
void
Defined in
in/packages/text-editor/src/TextEditor.ts:96
onEscape
▸ onEscape(e
): void
Parameters
Name | Type |
---|---|
e | KeyboardEvent |
Returns
void
Defined in
in/packages/text-editor/src/TextEditor.ts:100
onUpdate
▸ onUpdate(): void
Returns
void
Overrides
Defined in
in/packages/text-editor/src/TextEditor.ts:104
onUnload
▸ onUnload(): void
Returns
void