mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-06-06 16:36:58 +00:00
Remove TextStyle (it causes error in console)
This commit is contained in:
parent
9f9c50ddb8
commit
a8f95b3176
@ -3,7 +3,6 @@ import { EditorProvider, useCurrentEditor } from '@tiptap/react';
|
|||||||
import StarterKit from '@tiptap/starter-kit';
|
import StarterKit from '@tiptap/starter-kit';
|
||||||
import { Color } from '@tiptap/extension-color';
|
import { Color } from '@tiptap/extension-color';
|
||||||
import ListItem from '@tiptap/extension-list-item';
|
import ListItem from '@tiptap/extension-list-item';
|
||||||
import TextStyle from '@tiptap/extension-text-style';
|
|
||||||
import Placeholder from '@tiptap/extension-placeholder';
|
import Placeholder from '@tiptap/extension-placeholder';
|
||||||
import IconButton from '@mui/material/IconButton';
|
import IconButton from '@mui/material/IconButton';
|
||||||
import FormatBoldIcon from '@mui/icons-material/FormatBold';
|
import FormatBoldIcon from '@mui/icons-material/FormatBold';
|
||||||
@ -32,7 +31,7 @@ import { Box, Checkbox, Typography, useTheme } from '@mui/material';
|
|||||||
import { useAtom } from 'jotai';
|
import { useAtom } from 'jotai';
|
||||||
import { fileToBase64 } from '../../utils/fileReading/index.js';
|
import { fileToBase64 } from '../../utils/fileReading/index.js';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { t } from 'i18next';
|
import i18next from 'i18next';
|
||||||
|
|
||||||
function textMatcher(doc, from) {
|
function textMatcher(doc, from) {
|
||||||
const textBeforeCursor = doc.textBetween(0, from, ' ', ' ');
|
const textBeforeCursor = doc.textBetween(0, from, ' ', ' ');
|
||||||
@ -355,8 +354,7 @@ const MenuBar = memo(
|
|||||||
);
|
);
|
||||||
|
|
||||||
const extensions = [
|
const extensions = [
|
||||||
Color.configure({ types: [TextStyle.name, ListItem.name] }),
|
Color.configure({ types: [ListItem.name] }),
|
||||||
TextStyle.configure({ types: [ListItem.name] }),
|
|
||||||
StarterKit.configure({
|
StarterKit.configure({
|
||||||
bulletList: {
|
bulletList: {
|
||||||
keepMarks: true,
|
keepMarks: true,
|
||||||
@ -368,9 +366,7 @@ const extensions = [
|
|||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
Placeholder.configure({
|
Placeholder.configure({
|
||||||
placeholder: t('core:action.start_typing', {
|
placeholder: i18next.t('core:action.start_typing'),
|
||||||
postProcess: 'capitalizeFirst',
|
|
||||||
}),
|
|
||||||
}),
|
}),
|
||||||
ImageResize,
|
ImageResize,
|
||||||
];
|
];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user