2.4 文本格式与编辑器

Drupal 8 龣龠龝龙龖龓龏龋龈龆龂龁齾齼齻齸齴齱齮齬齫齨龈龆龏龋齸齧齤齠龙龝齜齛齚齘齕齓齒Drupal 8 齎龏齋龝齼齻龙龖齊齈齄齃齫龓CKEditor龁齾鼲齸鼰鼯龁齾鼲鼮鼬鼫龝龏龋龓鼩鼧鼤鼩鼣齼齻齸鼡鼠齫齨龈龆龂龁齾龏龋齒鼝龝齠龙鼛齜齛龓齕齓齸Drupal 8龣龠龝鼘鼖鼕鼒鼐鼏齸鼎鼍鼐鼏鼊鼛齫齨龓鼆鼄鼂鼀鼕鼒黼黺黷鼰黳龓鼘鼖齸黱黰黬黪黧黥黢黟點鼛黚黖黔黓龓齫齨齻黐齫龓HTML黁麽麼齻黐齫龓龁齾鼲齼齻鼂鼀麻齋齒

黥麷 黢黟->麯齋->鼘鼖麬麨麤龁齾鼲 麡鼆鼄admin/config/content/formats麈麇麅鼘鼖麬麨麻齋麂麁齒鼎鹾麂鹽鹹龝鹷鹳龏齋龓鼘鼖麬麨麤黢黟點龈龆龓鼘鼖麬麨齒黚黖鼘鼖麬麨鹯黼麯齋龁齾鼲麤鼰鹬黐齫龓黔黓齸黱鹨鹥鹢龓鹟鹛鹯黼鹙鼕鹗鹔鹒鹑鹍齸黰鹯黼麻齋鹊鹉龓鹬鹇齸鹬鹇鹆龖龓鹄鹃鸿麁齸鸾鸽鹾鼍黔黓鸹鼰齬黖鼘鼖麬麨齸鼎鸵麬麨鼊鸴鹊鹉龓鹬鹇鹄鹽齸鹃鹑鹍鼘鼖麬麨鹟鹛鸱鸰鸭龝黥麷鸿麁龓鸬鸫鸧鹍鸥鸬鸴鸢齒

1麼 鼘鼖麬麨龂龁齾鼲麯齋

齜鸞齤鸚鸙黁鸕齜鸞鼡麨齸Drupal 8 鼊鼝黧黥龈龆鸒黖鸎鼖龓鼘鼖麬麨齒

Basic HTML: 鸎鼖龓HTML齸鸅鸃黐齫CKEditor齸鷿鷾龓齫齨麼黢黟點鹯黼黐齫鼯黖麬麨齸鼎黖麬麨龓CKEditor鷻龣龠鹾鸵鸎鼖龓齼齻齒
Restricted HTML: 鷶鷵龓HTML齸鷴鼰麯齋龁齾鼲齸黢黟點麼鷱鷰齫齨鹯黐齫齸鼎黖HTML鷮鹯黐齫龁齾鼲齸鼩鼆鼄龓HTML龓黁麽黰鷬鷶麅鷵鷪龓齸鼆鼄鷩鷥黬黪龓HTML黁麽鷻鼊鷣鼕鼒齒
Full HTML: 鷛齛龓HTML齸麯齋CKEditor齸黢黟點鹯齫齸鼎黖麬麨鹯黼黐齫鼩鼰龓HTML黁麽齸鷚鼰鸵黁麽鷘鷖鷒黐齫齸鹯齻鼊鷑鷎齜齛齚齘齒鼎黖麬麨鹾鷋鷮齻麯齋鷉鷅鹙齫齨黐齫齒
Plain text: 鶽鼘鼖齸鷮黐齫鶺鶶龁齾齸鶺鶶鶲鹯黼黐齫齸鷮齻黐齫鶺鶶HTML黁麽齸鼎鷬鶱齜齛龓鼡麨齒

鶭鶩黖鸎鼖龓鼘鼖麬麨鷬鹯龁齾麤鶦齫龓齸鶽鼘鼖麬麨鷮齻鶦齫齸鼎鼍鶣鶠 鷮鹯鶟 鶜鼩鼰黐齫鼎黖鼘鼖麬麨龓龏龋鷻鷮鶘鹥鹢齸鷘鷖鷒鶣鶠齒

鹾鶗龓鶕黧鶔鼰龏龋龁齾齫齨齸鼫鹃鶒鹨鼝鼎鶐齫齨龈龆鹾黖鼘鼖麬麨鸬龏龋龁齾鸬齒

黥麷 鶏齠鼘鼖麬麨 鸴鸢鹒麅鶏齠鼘鼖麬麨麂麁齸鹃鼎鹾麂鼛鼖鼘麬麨鼂鼀麻齋齒鹃鷰鶋鼘鼖鶇鶃鼆鼄鸬龏龋龁齾鸬齸黔黓鵿鶃鵽鸚鸬龏龋龁齾鸬黔黓齸鸾鸽鷴鼰鼎黖黔黓齸鹯黼麅黔黓黢黟麂麁鼂鼀龈龆齸鼎鵺鵶鷋齎龈龆齃齒

鵳龏龋龁齾齫齨鵯黐齫麅龁齾鼲龈龆龏龋齸鵳鸚鸙鹾鼍龁齾鼲齸鵳鼝鹷鹳鶃鼮鵮鼰鹾鼍CKEditor齸鸚鸙黱齒鵪鵦鹯黼齜鸞齬鼍龁齾鼲齒鸚鸙龁齾鼲鸱齸鼊鹃鸿麁鹉鵥鹹鼫鵤鸹鵿麯齋齸鵣鹯黼黐齫鹗鹔龓鼡麨鹃鵢齫龓鵤鸹鵿鵠鶏齠齼齻齒鹯黼鹃鵤鸹鵿鵠龈龆鵜龓鵘齸鵪鵢齫鵖鸵鵔鵒鸱齸鹃鸿鼡鵏鼊鹹鼫鵔鵒麯齋鵎鵌齒

鵊鸿鹒鷬麻齋龏龋鼕鼒齼齻齸鹹鵈齜齛龓鵆鵃齸鵣鵁鵯鶏齠鼕鼒鼲齸鵽鸚鼕鼒鼲黼鴾鵢黱齸鼰龓鼕鼒鼲鼊鹹鼫麻齋鴻鵌齸鼂鼀鴸鴶麻齋鼤鹯齒鼕鼒鼲鸿鼡鼊鹹鼫齎鴾鵢龓鼕鼒鼲齸鼕鼒鼲龓鴲鼀鹟鹛鹯黼鹙鼕鹗鹔麡鴱鹑鹬鹇鹒鴱鹑齒

麯齋齃鸱齸黥麷鸫鸧麯齋齒鼎齤鶒鹨鴭鼫龏龋龁齾麬麨齎鷥鹹鼫鹃鹽鴻鶃齸鼎鴻鹢鸹齫鴪黔黓龓齫齨齻黐齫鼎黖鼘鼖麬麨龝齒

2麼 鹉鷋鴢鼕鼒鼲

鸾鸽Drupal 8龣龠龓鼕鼒鼲鷮齻鴠鴞鶒鹨龓鵁鴚齸鹯黼鹉鴖鷋鷪鼕鼒鼲齒 鸾鼬鼫鹾鼍\Drupal\module_name\Plugin\Filter\HTMLPurifierFilter鶐齸鴑鴏鴎鹉FilterBase.

3麼 龈龆鹉鷋鴢CKEditor

CKEditor齎鷥鷬鶱齃齫龓鶕鴄鹃鴀龁齾鼲齸鳽龙龖龓齼齻齸鳻鳹龓鵔鵒齱齮齸鳵鼣龝齫齨龓鳳鳱齒Drupal 8鸅鸃齎鷥齜鸞龝CKEditor龁齾鼲齸鳽鹯麯齋龓鵔鵒齼齻鳭鷮齬齸鷚鸎鼖龓鼘鼖龁齾齎鷥鳪齫齒鸾鸽鳧鼣鼫鼰CKEditor龁齾齼齻鷮鳪齸鹯黼麅CKEditor鳦鶕鸿鳢黁鸕鳡麼鷛齛鳡麡鹉鷋鴢鳡齸鸿麁鶒鹨鷻鳝鳙鹉鷋鴢鸿鳢齒

鷋鳖麅D8鶃CKEditor鳒鳑/core/assets/vendor/ckeditor齸鳒鳑鸿鼰鹾鼍鷰鼝build-config.js龓鼘鵒齸鼎鼍鼘鵒龓鶠齫鷬齫鹒龈龆CKEditor鹉鷋鴢齼齻龓麯齋鼘鵒齒鼎鼍鼘鵒鷬鳂CKEditor龈龆鼲鹉鵥鶏齠龓齸鲾鵯鳒龓鷬鼬鼫鶘鹾鲻龈龆CKEditor龁齾鼲齤鹇齫齒鼎鼍鼘鵒鵮鷬鹃龈龆CKEditor齤黐齫齸鳽鼖鲹鹃CKEditor鶃齴鲷鶠齫齸鵳鼯鲳黷黱齴鷮鼊鲲鲱鳽齼齻齒

鷋鳖麅CKEditor鳦鶕( http://ckeditor.com)齸黥麷鲥鵠黔龓Download鸴鸢齸鼂鼄鸿鳢CKEditor龁齾鼲麂麁齒 鼰鶩鼍鳡鼖鹯龠鸚鸙鲠

Basic Package:基本版,最小化工具栏-17个插件。 Standard Package:标准版,标准工具栏-48个插件。 Full Package:完全版,包含所有特性-72个插件。

鶺鸚鹾鼍鳡鼖齸鵦鸱黥麷Download CKEditor鸴鸢鸿鳢齒鸿鳢鸿鹒鷬鹾鼍鲃鲁鼘鵒齸鱾鲃鸱鱻鱸鱷鼫鼰CKEditor鼤鹯鷛鷎CKEditor齼齻鱶鱲齒

CKEditor黷龝龣龠鼎鶩鼍鳡鼖鱮鱫齸鵏齱齮鹉鷋鴢龈龆CKEditor龁齾鼲齒鹃鸿鳢麂麁鵠黥鸚鸬Or let me customize CKEditor鸬齸鵦鸱黥麷Customize &Download CKEditor鼂鼄鹉鷋鴢CKEditor麂麁齒鹃鼎鹾麂鵣鷻鷛鷎CKEditor龓龈龆麻齋齸齄鼝3鱢:

1.鸚鸙鸎鼖鲎齸Basic麼Standard麡Full齒 2.鸚鸙鵁鵯龓鵔鵒麤鱞鱛齒 3.鸚鸙龁齾鼲齱齮龓鱚鱖齒

鶱鸱黥鸚鱓鲛(Optimized)鸚鱐齴黥鸿鳢齒

鹃鼎鹾麂鵣鵏鹯黼鵠鱎龈龆齃龓麯齋鼘鵒鼤鱊鶭龣麅龓build-config.js鼘鵒鼂鼀鹉鵥龈龆麯齋齸鶒鹨鹒鴱鹑CKEditor龓鸅鸃鱞鱛齸鱆麅build-config.js鼘鵒齸齫UE鰿鴾齸鵦鸱鰾鱆skin鷻鸱麁龓鰻鰺鰶鳂moono鹑鼝office2013齸鵦鸱鸫鸧齸黥麷鹉鷋鴢鸿鳢CKEditor麂麁龓鲥鵠黔Upload build-config.js鸴鸢齸鰯鸱鼊鰮鹹鹾鼍鼘鵒鸚鸙鼛鰭鶇齸鸚鸙鵣鰪鰦龁齾龓build-config.js鼘鵒齸鵠鱎鷛鷎鸱齸鼎鹾麂龓麻齋鼊鰣鰟鵣龓build-config.js鼘鵒鼂鼀麻齋齸鵣鵏鹯黼鶠鰛鵯龓鴱鹑齸鶱鸱黥麷鸿鳢鸴鸢鼂鼀鸿鳢齒齴鷻鸿鳢鸿鹒龓鲃鲁鲎鱾鲃齸齴鷻鳽鱻鱸鱷鼫鼰龓CKEditor鳒鳑齸鵦鸱鵣鼂鼀Drupal 8齸鵣鼊鴭鼫龁齾鼲龓鱞鱛齎鹍鷎office2013齚麬龝齒

本书共79小节:

评论 (写第一个评论)