Class MobileTextEditor
Constructors
(constructor)(elementHandler, fontService, useSimpleFontList, _inputTextValidator, designAtomsApiClient, colorPreviewService, colorParser, rgbColorParser)
Constructs a new instance of the MobileTextEditor
class
Declaration
constructor(elementHandler: ITextEditorElementHandler, fontService: IFontService, useSimpleFontList: boolean, _inputTextValidator: IInputTextValidator, designAtomsApiClient: IDesignAtomsApiClient, colorPreviewService: IColorPreviewService, colorParser: IColorParser, rgbColorParser: IRgbColorParser);
Parameters
Properties
canRedo
Declaration
Property Value
canUndo
Declaration
Property Value
disableDrawBaseline
Declaration
get disableDrawBaseline(): boolean;
Property Value
editorInitialized
Declaration
editorInitialized: EventObject<void>;
Property Value
frameChanged
Declaration
get frameChanged(): EventObject<RectangleF>;
Property Value
highlightInEditingModeEnabled
Declaration
get highlightInEditingModeEnabled(): boolean;
Property Value
invalidCharEntered
Declaration
get invalidCharEntered(): EventObject<void>;
Property Value
isActive
Declaration
Property Value
isReady
Declaration
Property Value
redrawActiveTextInEditMode
Indicates if the editor needs to redraw ActiveText when it is edited.
Declaration
get redrawActiveTextInEditMode(): boolean;
Property Value
Type |
Description |
boolean |
Indicates if the editor needs to redraw ActiveText when it is edited.
|
styleChanged
Declaration
styleChanged: EventObject<void>;
Property Value
textLimits
Declaration
get textLimits(): ITextLimits;
Property Value
textLimitsViolationEvent
Declaration
get textLimitsViolationEvent(): EventObject<ILimitsViolationEventData>;
Property Value
textMetrics
Declaration
get textMetrics(): ITextMetrics;
Property Value
textMetricsChangedEvent
Declaration
get textMetricsChangedEvent(): EventObject<ITextMetrics>;
Property Value
Methods
dispose()
Declaration
Returns
ensureFocus()
Declaration
Returns
enterEditMode(point)
Declaration
enterEditMode(point?: IPoint): Promise<void>;
Parameters
Type |
Name |
Description |
IPoint |
point |
|
Returns
Type |
Description |
Promise<void> |
|
executeCommand(commandType, initData)
Declaration
executeCommand(commandType: CommandType, initData?: any): void;
Parameters
Type |
Name |
Description |
CommandType |
commandType |
|
any |
initData |
|
Returns
exitEditMode()
Declaration
Returns
getFormattedText()
Declaration
getFormattedText(): Promise<string>;
Returns
Type |
Description |
Promise<string> |
|
getInlineStyle()
Declaration
getInlineStyle(): ICharStyle | null;
Returns
getParagraphLength(index)
Declaration
getParagraphLength(index: number): number;
Parameters
Type |
Name |
Description |
number |
index |
|
Returns
getParagraphStyle()
Declaration
getParagraphStyle(): IParagraphStyle;
Returns
getTextMetrics()
Declaration
getTextMetrics(): TextMetrics;
Returns
Type |
Description |
TextMetrics |
|
getTextModel()
Declaration
getTextModel(): TextModel;
Returns
initialize(data, colorPalette, listStyleSheetManager)
Declaration
initialize(data: EditorInitData, colorPalette: IColorPalette, listStyleSheetManager: IListStyleSheetManager): void;
Parameters
Returns
isApplyingListsEnabled()
Declaration
isApplyingListsEnabled(): boolean;
Returns
isBulletedList()
Declaration
isBulletedList(): boolean;
Returns
isIndentationEnabled()
Declaration
isIndentationEnabled(): boolean;
Returns
isIndentationHidden()
Declaration
isIndentationHidden(): boolean;
Returns
isNumberedList()
Declaration
isNumberedList(): boolean;
Returns
processKeyEvent(e)
Declaration
processKeyEvent(e: KeyboardEvent): Promise<boolean>;
Parameters
Type |
Name |
Description |
KeyboardEvent |
e |
|
Returns
Type |
Description |
Promise<boolean> |
|
processMouseEvent(e)
Declaration
processMouseEvent(e: IMouseEvent): void;
Parameters
Returns
processZoomChangedEvent()
Declaration
processZoomChangedEvent(): Promise<boolean>;
Returns
Type |
Description |
Promise<boolean> |
|
redo()
Declaration
Returns
redraw()
Declaration
Returns
setFontRegistry(fontRegistry)
Declaration
setFontRegistry(fontRegistry: IFontRegistry): void;
Parameters
Returns
setInlineStyle(value)
Declaration
setInlineStyle(value: ICharStyle): Promise<void>;
Parameters
Returns
Type |
Description |
Promise<void> |
|
setParagraphStyle(value)
Declaration
setParagraphStyle(value: IParagraphStyle): Promise<void>;
Parameters
Returns
Type |
Description |
Promise<void> |
|
undo()
Declaration
Returns