Skip to content

Class: TextEditor

Hierarchy

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new TextEditor(editor): TextEditor

Parameters

NameType
editorIEditor

Returns

TextEditor

Inherited from

InnerEditor.constructor

Defined in

in/packages/editor/src/tool/InnerEditor.ts:28

Properties

editor

editor: IEditor

Inherited from

InnerEditor.editor

Defined in

in/packages/editor/src/tool/InnerEditor.ts:20


view

view: IGroup

Inherited from

InnerEditor.view

Defined in

in/packages/editor/src/tool/InnerEditor.ts:23


editTarget

editTarget: IText

Overrides

InnerEditor.editTarget

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

NameType
selectAllboolean

Overrides

InnerEditor.config

Defined in

in/packages/text-editor/src/TextEditor.ts:16


eventIds

eventIds: IEventListenerId[] = []

Overrides

InnerEditor.eventIds

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

IEditBox

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

InnerEditor.onCreate

Defined in

in/packages/editor/src/tool/InnerEditor.ts:34


create

create(): void

Returns

void

Inherited from

InnerEditor.create

Defined in

in/packages/editor/src/tool/InnerEditor.ts:35


load

load(): void

Returns

void

Inherited from

InnerEditor.load

Defined in

in/packages/editor/src/tool/InnerEditor.ts:44


update

update(): void

Returns

void

Inherited from

InnerEditor.update

Defined in

in/packages/editor/src/tool/InnerEditor.ts:53


unload

unload(): void

Returns

void

Inherited from

InnerEditor.unload

Defined in

in/packages/editor/src/tool/InnerEditor.ts:56


onDestroy

onDestroy(): void

Returns

void

Inherited from

InnerEditor.onDestroy

Defined in

in/packages/editor/src/tool/InnerEditor.ts:64


destroy

destroy(): void

Returns

void

Inherited from

InnerEditor.destroy

Defined in

in/packages/editor/src/tool/InnerEditor.ts:65


onLoad

onLoad(): void

Returns

void

Overrides

InnerEditor.onLoad

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

NameType
eKeyboardEvent

Returns

void

Defined in

in/packages/text-editor/src/TextEditor.ts:100


onUpdate

onUpdate(): void

Returns

void

Overrides

InnerEditor.onUpdate

Defined in

in/packages/text-editor/src/TextEditor.ts:104


onUnload

onUnload(): void

Returns

void

Overrides

InnerEditor.onUnload

Defined in

in/packages/text-editor/src/TextEditor.ts:155

Released under the MIT License.