FCKEditor配置代码段
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了FCKEditor配置代码段相关的知识,希望对你有一定的参考价值。
Replace and append the following settings in modules/fckeditor/fckeditor.config.js. Has to be re applied after each update.
// Replace DrupalBasic (around line 50) FCKConfig.ToolbarSets['DrupalBasic'] = [ ['Source'], ['FontFormat','-','Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink', 'Image'], ['CreateDiv','ShowBlocks'] ] ; // Append to bottom of page // I prefer to see block elements. FCKConfig.StartupShowBlocks = true; // Remove the double background image. FCKConfig.EditorAreaStyles = 'body { background-image: none; background-color: #FFF }'; // Make source code view readable. FCKConfig.FormatSource = true; FCKConfig.FormatOutput = true;
以上是关于FCKEditor配置代码段的主要内容,如果未能解决你的问题,请参考以下文章