251210_02_ENH : 이전파일 누락 내용 추가

This commit is contained in:
2025-12-10 16:30:11 +09:00
parent ef949a6242
commit 1080880fba
21 changed files with 1574 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
import { Extension } from "@tiptap/core";
export const FontSize = Extension.create({
name: "fontSize",
addGlobalAttributes() {
return [
{
types: ["textStyle"],
attributes: {
fontSize: {
default: null as string | null,
parseHTML: (element) => (element as HTMLElement).style.fontSize || null,
renderHTML: (attributes) => {
if (!attributes.fontSize) return {};
return { style: `font-size:${attributes.fontSize}` };
},
},
},
},
];
},
});