@syncfusion/ej2-richtexteditor
Version:
Essential JS 2 RichTextEditor component
170 lines (159 loc) • 3.08 kB
TypeScript
import { MarkdownParser } from './../base/markdown-parser';
import { IMarkdownFormatterCallBack } from './../../common/interface';
import { KeyboardEventArgs } from '@syncfusion/ej2-base';
/**
* Specifies IMDFormats interfaces.
*
* @hidden
*/
export interface IMDFormats {
/**
* Specifies the formatTags.
*/
syntax?: {
[]: string;
};
/**
* Specifies the parent.
*/
parent?: MarkdownParser;
}
/**
* Specifies IMTable interfaces.
*
* @hidden
*/
export interface IMDTable {
syntaxTag?: {
[]: {
[]: string;
};
};
/**
* Specifies the parent.
*/
parent?: MarkdownParser;
}
/**
* Defines types to be used to customize the markdown syntax.
*
*/
export declare type MarkdownTableFormat = 'Formats' | 'List';
/**
* Specifies ISelectedLines interfaces.
*
* @hidden
*/
export interface ISelectedLines {
/**
* Specifies the parentLinePoints.
*/
parentLinePoints: {
[]: string | number;
}[];
/**
* Specifies the textarea selection start point.
*/
start: number;
/**
* Specifies the textarea selection end point.
*/
end: number;
}
/**
* Specifies MarkdownParserModel interfaces.
*
* @hidden
*/
export interface IMarkdownParserModel {
/**
* Specifies the element.
*/
element: Element;
/**
* Specifies the formatTags.
*/
formatTags?: {
[]: string;
};
/**
* Specifies the formatTags.
*/
listTags?: {
[]: string;
};
/**
* Specifies the selectionTags.
*/
selectionTags?: {
[]: string;
};
/**
* Specifies the options.
*/
options?: {
[]: number;
};
}
/**
* Specifies ISubCommands interfaces.
*
* @hidden
*/
export interface IMarkdownSubCommands {
/**
* Specifies the subCommand.
*/
subCommand: string;
/**
* Specifies the callBack.
*/
callBack(args?: IMarkdownFormatterCallBack): () => void;
/**
* Specifies the originalEvent.
*/
event?: MouseEvent;
}
/**
*/
export interface MarkdownUndoRedoData {
text?: string;
start?: number;
end?: number;
}
/**
*/
export interface IMarkdownItem {
module?: string;
event?: KeyboardEvent | MouseEvent;
item: IMarkdownItemArgs;
value?: IMarkdownItemArgs;
subCommand: string;
callBack(args: IMarkdownFormatterCallBack): () => void;
}
/**
*/
export interface IMarkdownItemArgs {
url?: string;
text?: string;
target?: string;
width?: number | string;
height?: number | string;
headingText?: string;
colText?: string;
}
/**
* Specifies IMDKeyboardEvent interfaces.
*
* @hidden
*/
export interface IMDKeyboardEvent {
/**
* Specifies the callBack.
*/
callBack(args?: IMarkdownFormatterCallBack): () => void;
/**
* Specifies the event.
*/
event: KeyboardEventArgs;
}