@atlaskit/editor-core
Version:
A package contains Atlassian editor core functionality
25 lines (24 loc) • 1.28 kB
TypeScript
import { Schema } from '../prosemirror';
export interface JIRASchemaConfig {
allowLists?: boolean;
allowMentions?: boolean;
allowLinks?: boolean;
allowAdvancedTextFormatting?: boolean;
allowCodeBlock?: boolean;
allowBlockQuote?: boolean;
allowSubSup?: boolean;
allowMedia?: boolean;
allowTextColor?: boolean;
allowTables?: boolean;
}
export default function makeSchema(config: JIRASchemaConfig): Schema<any, any>;
export declare function isSchemaWithLists(schema: Schema<any, any>): boolean;
export declare function isSchemaWithMentions(schema: Schema<any, any>): boolean;
export declare function isSchemaWithLinks(schema: Schema<any, any>): boolean;
export declare function isSchemaWithAdvancedTextFormattingMarks(schema: Schema<any, any>): boolean;
export declare function isSchemaWithSubSupMark(schema: Schema<any, any>): boolean;
export declare function isSchemaWithCodeBlock(schema: Schema<any, any>): boolean;
export declare function isSchemaWithBlockQuotes(schema: Schema<any, any>): boolean;
export declare function isSchemaWithMedia(schema: Schema<any, any>): boolean;
export declare function isSchemaWithTextColor(schema: Schema<any, any>): boolean;
export declare function isSchemaWithTables(schema: Schema<any, any>): boolean;