Skip to content

Commit c27e206

Browse files
authored
Merge pull request #18 from PriDebnath/fix/toolbar-buttons
Fix/toolbar buttons
2 parents 37a6d1e + 10235a0 commit c27e206

12 files changed

Lines changed: 176 additions & 5 deletions

‎frontend/index.html‎

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
content="width=device-width, initial-scale=1.0" />
1010

1111
<!-- Primary Meta Tags -->
12-
<title>Notes – A Calm, Beautiful Space for Your Thoughts</title>
12+
<title>Notes</title>
1313
<meta name="description"
1414
content="Notes is a calm, beautiful notes app that turns scattered ideas into a personal library you actually want to revisit." />
1515
<meta name="keywords"
@@ -54,8 +54,21 @@
5454

5555
<!-- Favicon -->
5656
<link rel="icon"
57-
type="image/svg+xml"
58-
href="/vite.svg" />
57+
58+
href="/images/logo/favicon.ico" />
59+
60+
<link rel="icon" type="image/png" sizes="16x16"
61+
href="/images/logo/favicon-16x16.png" />
62+
<link rel="icon" type="image/png" sizes="32x32"
63+
href="/images/logo/favicon-32x32.png" />
64+
65+
<link rel="apple-touch-icon"
66+
href="/images/logo/apple-touch-icon.png" />
67+
68+
69+
70+
<link rel="manifest" href="/site.webmanifest" />
71+
5972

6073
<!-- Open Graph / Facebook -->
6174

‎frontend/package.json‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@
4444
"@tanstack/history": "^1.145.7",
4545
"@tanstack/react-query": "^5.90.17",
4646
"@tanstack/react-router": "^1.150.0",
47+
"@tiptap/extension-highlight": "^3.16.0",
48+
"@tiptap/extension-table": "^3.16.0",
49+
"@tiptap/extension-task-item": "^3.16.0",
50+
"@tiptap/extension-task-list": "^3.16.0",
51+
"@tiptap/extension-text-align": "^3.16.0",
52+
"@tiptap/extension-text-style": "^3.16.0",
4753
"@tiptap/pm": "^3.15.3",
4854
"@tiptap/react": "^3.15.3",
4955
"@tiptap/starter-kit": "^3.15.3",
6.54 KB
Loading
23.2 KB
Loading
6.4 KB
Loading
404 Bytes
Loading
763 Bytes
Loading
15 KB
Binary file not shown.

‎frontend/public/site.webmanifest‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "Notes",
3+
"short_name": "Notes",
4+
"icons": [
5+
{
6+
"src": "/android-chrome-192x192.png",
7+
"sizes": "192x192",
8+
"type": "image/png"
9+
},
10+
{
11+
"src": "/android-chrome-512x512.png",
12+
"sizes": "512x512",
13+
"type": "image/png"
14+
}
15+
],
16+
"theme_color": "#ffffff",
17+
"background_color": "#ffffff",
18+
"display": "standalone"
19+
}

‎frontend/src/components/common/tiptap-customized.tsx‎

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ import { FloatingMenu, BubbleMenu } from '@tiptap/react/menus'
88
import TiptapToolbar from '@/components/common/tiptap-toolbar'
99
import { useGetKeyBoardHeight } from '@/hook/use-get-keyboard-height.hook'
1010
import { cn } from "@/lib/utils";
11+
import TaskList from "@tiptap/extension-task-list";
12+
import TaskItem from "@tiptap/extension-task-item";
13+
import TextAlign from "@tiptap/extension-text-align";
14+
import Highlight from "@tiptap/extension-highlight";
15+
import { TableKit } from '@tiptap/extension-table'
16+
import { TextStyle, FontSize } from '@tiptap/extension-text-style'
17+
18+
1119

1220
interface Props {
1321
value?: string;
@@ -21,7 +29,21 @@ const Tiptap = (props: Props) => {
2129
const styleString = buildStyleString(quoteFormData?.texture!, quoteFormData?.pri_set!)
2230

2331
const editor = useEditor({
24-
extensions: [StarterKit], // define your extension array
32+
extensions: [
33+
StarterKit,
34+
Highlight,
35+
TextStyle,
36+
FontSize,
37+
TextAlign.configure({
38+
types: ["heading", "paragraph"],
39+
}),
40+
TaskList,
41+
TaskItem.configure({
42+
nested: true,
43+
}),
44+
TableKit,
45+
46+
], // define your extension array
2547
content: value,
2648
editorProps: {
2749
attributes: {

0 commit comments

Comments
 (0)