ALL OF ME
2012年5月12日
CKEditor 教學 - 增加字體(字型) ( CKEditor add custom fonts )
相信 CKEditor 預設字型通常都沒有辦法滿足大家的需求 ( 尤其是中文 ) ,所以這篇將會介紹如何新增額外的字體 ( 字型 )。
替 CKEditor 增加字體:
當 CKEditor 建立後,可以看到字體的預設值只有一些常見的,
如果要新增新的字體,只需要找到
ckeditor.js
裡面設定字體的參數
font_names
,
這邊只需要加入你所需要的字體,如下:
加入之後 CKEditor 字體就有你所新增的字型,
較新的文章
較舊的文章
首頁
熱門文章
PostgreSQL 教學 - 快速建立資料庫與使用者 ( Create database and user using PostgreSQL )
相信 PostgreSQL 已經成為許多團隊愛用的資料庫,因此本篇文章將介紹如何透過 PostgreSQL 的指令簡單的將資料庫與使用者建立起來,雖然沒難度但仍在這記錄下來供其他人參考。 ( If you want to read this article in Englis...
AWS - 使用 Fake S3 模擬及測試 Amazon S3 服務 ( Use Fake S3 to simulate and test APIs of Amazon S3 in a sandbox environment )
Fake S3 是一個由 Ruby 開發並設計成模擬 S3 服務的軟體,所以你可以透過不同的 SDK (例如:boto3) 去測試 S3 的 API。本篇將介紹如何設定及使用 Fake S3 (docker 版本)。( 其他 AWS 相關教學可以參考 本篇整理 。If you ...
Gitlab - 解決 Permission denied (publickey) ( Resolve Gitlab permission denied (publickey) error )
Gitlab 為了讓使用者部署程式更方便,它提供了一個功能叫 Deploy Keys,使用者將 SSH Public Key 加入,之後不需要密碼就可以獲得程式庫 read-only 的權限,所以很適合運用在 CI 中。通常在 Unix-like 環境中將對應的 Key 與其使用...
Mac - 從終端機利用 Terminal-notifier 發送 OS X Notification ( Send native notifications from terminal by using terminal-notifier on Mac OS X )
相信大家有時等待測試、shell script 完成任務需要很長的時間,因此希望任務完成可以即時收到通知。在 Mac 上有 Growl 可以滿足這個需求,但 Growl 是收費軟體。所以我採用 terminal-notifier 工具發送 OS X 的通知 ( Notific...
Arch Linux - 為 Vim 安裝樹狀顯示目錄、檔案工具 : NERD Tree ( Install NERD Tree for Vim on Arch Linux )
在 Terminal 中操作需要樹狀化顯示資料夾、檔案時可以使用 Tree 工具 ( 請參考 此篇 ),而在 Vim 中編寫程式時更需要這種功能,因此本篇將介紹如何在 Vim 中安裝、使用 NERD Tree。( 其他 Arch Linux 相關教學可以參考 本篇整理 )