Skip to content

Commit af547ac

Browse files
committed
bugfix/DEVSU-2212-comments-underline
- DEVSU-2212 - Add underline implementation for analyst comments editor - Add Tiptap extension-underline to dependencies
1 parent 683113e commit af547ac

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

app/components/IPRWYSIWYGEditor/index.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {
1414
Box,
1515
} from '@mui/material';
1616
import './index.scss';
17+
import Underline from '@tiptap/extension-underline';
1718
import {
1819
useEditor, EditorContent, Editor,
1920
} from '@tiptap/react';
@@ -25,6 +26,7 @@ import {
2526

2627
const extensions = [
2728
StarterKit,
29+
Underline,
2830
];
2931

3032
const MenuBarButton = forwardRef<HTMLButtonElement, ToggleButtonProps>(
@@ -61,7 +63,7 @@ const MenuBar = ({
6163
<FormatItalic />
6264
</MenuBarButton>
6365
<MenuBarButton
64-
onClick={() => editor.chain().focus().toggleCode().run()}
66+
onClick={() => editor.chain().focus().toggleUnderline().run()}
6567
value="underline"
6668
selected={editor.isActive('underline')}
6769
>

package-lock.json

+19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@
109109
"@mui/system": "~5.14.8",
110110
"@storybook/addon-actions": "~7.4.0",
111111
"@storybook/react": "^7.4.0",
112+
"@tiptap/extension-underline": "^2.2.3",
112113
"@tiptap/pm": "^2.1.12",
113114
"@tiptap/react": "^2.1.12",
114115
"@tiptap/starter-kit": "^2.1.12",

0 commit comments

Comments
 (0)