@frontify/fondue
Version:
Design system of Frontify
41 lines (40 loc) • 1.31 kB
JavaScript
import { MARK_STRIKETHROUGH as n, MARK_ITALIC as L, MARK_BOLD as M, MARK_CODE as p } from "@udecode/plate-basic-marks";
import { ELEMENT_CODE_BLOCK as l } from "@udecode/plate-code-block";
import { getPluginType as m } from "@udecode/plate-core";
import { ELEMENT_LINK as T } from "@udecode/plate-link";
import { ELEMENT_LIC as _, ELEMENT_LI as h, ELEMENT_OL as i, ELEMENT_UL as s } from "@udecode/plate-list";
import { ELEMENT_MENTION as g } from "@udecode/plate-mention";
import { ELEMENT_PARAGRAPH as o } from "@udecode/plate-paragraph";
import { TextStyles as a } from "../../Plugins/TextStylePlugin/types.es.js";
const K = (E) => ({
nodeTypes: {
paragraph: m(E, o),
link: m(E, T),
blockQuote: m(E, a.quote),
inlineCodeMark: m(E, p),
strongMark: m(E, M),
emphasisMark: m(E, L),
deleteMark: m(E, n),
image: m(E, "img"),
codeBlock: m(E, l),
thematicBreak: m(E, "hr"),
ulList: m(E, s),
olList: m(E, i),
listItem: m(E, h),
listItemChild: m(E, _),
heading: {
1: m(E, a.heading1),
2: m(E, a.heading2),
3: m(E, a.heading3),
4: m(E, a.heading4),
5: m(E, "h5"),
6: m(E, "h6")
},
mention: m(E, g)
},
linkDestinationKey: "url"
});
export {
K as plateEditorOptions
};
//# sourceMappingURL=options.es.js.map