The API reference is a Work in Progress and will be continuously improved and extended. We'd love to hear your feedback in our documentation repository.

Home > @edtr-io/plugin-text > TextPluginConfig

TextPluginConfig interface

Signature:
export interface TextPluginConfig

Properties

PropertyTypeDescription
blockquotestring
i18n{
blockquote: {
toggleTitle: string;
};
colors: {
setColorTitle: string;
resetColorTitle: string;
openMenuTitle: string;
closeMenuTitle: string;
};
headings: {
setHeadingTitle(level: number): string;
openMenuTitle: string;
closeMenuTitle: string;
};
link: {
toggleTitle: string;
placeholder: string;
openInNewTabTitle: string;
};
list: {
toggleOrderedList: string;
toggleUnorderedList: string;
openMenuTitle: string;
closeMenuTitle: string;
};
math: {
toggleTitle: string;
displayBlockLabel: string;
placeholder: string;
editors: {
visual: string;
latex: string;
noVisualEditorAvailableMessage: string;
};
helpText(KeySpan: React.ComponentType<{
children: React.ReactNode;
}>): React.ReactNode;
};
richText: {
toggleStrongTitle: string;
toggleEmphasizeTitle: string;
};
suggestions: {
noResultsMessage: string;
};
}
placeholderstring
plugins((pluginClosure: SlatePluginClosure) => TextPlugin)[]
registry{
name: string;
title?: string;
description?: string;
}[]
theme{
backgroundColor: string;
color: string;
hoverColor: string;
active: {
backgroundColor: string;
color: string;
};
dropDown: {
backgroundColor: string;
};
suggestions: {
background: {
default: string;
highlight: string;
};
text: {
default: string;
highlight: string;
};
};
plugins: {
colors: {
colors: string[];
defaultColor: string;
};
};
}