feat: replace rich text editor with custom Tiptap implementation and add HTML formatting utilities

This commit is contained in:
2026-06-05 19:25:51 +07:00 Unverified
parent 658e683c96
commit cb288588d8
7 changed files with 69 additions and 46 deletions
+4
View File
@@ -4,3 +4,7 @@ import { twMerge } from "tailwind-merge"
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}
export const stripHtml = (html: string) => {
return (html || "").replace(/<[^>]*>?/gm, '').trim();
};