AIO 編輯器
FontFamily
字體。
文字字體(輸出 font-family style),樣式掛於 TextStyle mark。
- config key:
AioEditorCoreExtension.FontFamily - 來源:
@tiptap/extension-text-style(FontFamily)
載入途徑:跟隨 features 宣告:FontFamily。按鈕未宣告但要保留能力 → include: [AioEditorCoreExtension.FontFamily]。
排除影響(exclude: [FontFamily]): 按鈕 FontFamily 將自動隱藏; 以 extraExtensions 補上同名 extension(fontFamily)即為替換。
選項
| 欄位 | 型別 | 預設值 | 說明 |
|---|---|---|---|
types | string[] | ['textStyle'] | 樣式套用之目標 mark 型別 |
Commands
| Command | 說明 |
|---|---|
setFontFamily(fontFamily) | 設定字體 |
unsetFontFamily() | 移除字體設定 |