@atlaskit/editor-core
Version:
A package contains Atlassian editor core functionality
24 lines (19 loc) • 523 B
text/typescript
import { EditorProps, EditorAppearance } from '../types';
const messageEditorPropsPreset: EditorProps = {
appearance: 'message',
saveOnEnter: true,
allowTextFormatting: true,
allowLists: true,
allowTextColor: true,
allowHyperlinks: true,
allowCodeBlocks: true,
allowTasksAndDecisions: true
};
export default function getPropsPreset(appearance: EditorAppearance): EditorProps {
switch (appearance) {
case 'message':
return { ...messageEditorPropsPreset };
default:
return {};
}
}