@atlaskit/editor-common
Version:
A package that contains common classes and components for editor and renderer
20 lines (19 loc) • 444 B
TypeScript
export declare const rankEditorPlugins: {
plugins: string[];
nodes: string[];
marks: string[];
};
export declare function sortByOrder(item: 'plugins' | 'nodes' | 'marks'): (a: {
name: string;
}, b: {
name: string;
}) => number;
export declare function sortByOrderWithTypeName(item: 'plugins' | 'nodes' | 'marks'): (a: {
type: {
name: string;
};
}, b: {
type: {
name: string;
};
}) => number;