2
0

build: add pnpm

This commit is contained in:
Baptiste Arnaud
2022-08-08 08:21:36 +02:00
parent 8c3b5058f1
commit ee338f62dc
183 changed files with 19442 additions and 18364 deletions

View File

@ -5,6 +5,7 @@ import {
} from '@udecode/plate-basic-marks'
import { createPlugins } from '@udecode/plate-core'
import { createLinkPlugin, ELEMENT_LINK } from '@udecode/plate-link'
import { PlateFloatingLink } from '@udecode/plate-ui-link'
export const editorStyle: React.CSSProperties = {
flex: 1,
@ -18,7 +19,9 @@ export const platePlugins = createPlugins(
createBoldPlugin(),
createItalicPlugin(),
createUnderlinePlugin(),
createLinkPlugin(),
createLinkPlugin({
renderAfterEditable: PlateFloatingLink,
}),
],
{
components: {

View File

@ -100,4 +100,5 @@ const components = {
},
}
export const customTheme = extendTheme({ colors, fonts, components })
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const customTheme: any = extendTheme({ colors, fonts, components })