diff --git a/src/components/RichTextEditor.tsx b/src/components/RichTextEditor.tsx
index 097dc7e..666970f 100644
--- a/src/components/RichTextEditor.tsx
+++ b/src/components/RichTextEditor.tsx
@@ -35,7 +35,7 @@ export default function RichTextEditor({ value, onChange, placeholder = 'Enter d
const execCommand = (command: string) => {
editorRef.current?.focus();
-
+
if (command === 'bold') {
document.execCommand('bold', false);
} else if (command === 'italic') {
@@ -57,7 +57,7 @@ export default function RichTextEditor({ value, onChange, placeholder = 'Enter d
} else if (command === 'redo') {
document.execCommand('redo', false);
}
-
+
updateValue();
};
@@ -80,7 +80,7 @@ export default function RichTextEditor({ value, onChange, placeholder = 'Enter d
tableHTML += '';
}
tableHTML += '
';
-
+
if (editorRef.current) {
editorRef.current.focus();
document.execCommand('insertHTML', false, tableHTML);
@@ -93,7 +93,7 @@ export default function RichTextEditor({ value, onChange, placeholder = 'Enter d
if (!editorRef.current) return;
const selection = window.getSelection();
if (!selection || selection.rangeCount === 0) return;
-
+
const range = selection.getRangeAt(0);
let cell = range.commonAncestorContainer;
while (cell && cell !== editorRef.current) {
@@ -114,7 +114,7 @@ export default function RichTextEditor({ value, onChange, placeholder = 'Enter d
if (!editorRef.current) return;
const selection = window.getSelection();
if (!selection || selection.rangeCount === 0) return;
-
+
const range = selection.getRangeAt(0);
let cell = range.commonAncestorContainer;
while (cell && cell !== editorRef.current) {
@@ -143,7 +143,7 @@ export default function RichTextEditor({ value, onChange, placeholder = 'Enter d
if (!editorRef.current) return;
const selection = window.getSelection();
if (!selection || selection.rangeCount === 0) return;
-
+
const range = selection.getRangeAt(0);
let cell = range.commonAncestorContainer;
while (cell && cell !== editorRef.current) {
@@ -182,13 +182,13 @@ export default function RichTextEditor({ value, onChange, placeholder = 'Enter d
- execCommand('insertUnorderedList')} title="Bullet List">
+ {/* execCommand('insertUnorderedList')} title="Bullet List">
execCommand('insertOrderedList')} title="Numbered List">
-
+ */}
execCommand('justifyLeft')} title="Align Left">
@@ -207,7 +207,7 @@ export default function RichTextEditor({ value, onChange, placeholder = 'Enter d
Insert Table
- {[2, 3, 4, 5].map(rows =>
+ {[2, 3, 4, 5].map(rows =>
{[2, 3, 4, 5].map(cols => (