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小节:

评论 (写第一个评论)