CKEditor用法

     
config.js
 
 
ckeditor.editorconfig = function( config ){	// define changes to default configuration here. for example:	config.language = 'zh-cn';	config.uicolor = '#aadc6e';	config.width = '100%';	config.height = '300px';	config.skin = 'office2003';	config.toolbar = 'full';	config.fullpage = true;                              //允许html,head,link等标签        config.removeplugins = 'elementspath';   //去掉底部显示的标签        config.resize_enabled = true;                  //显示底部拖动编辑器大小图标};
  
html:
 
 
<script type="text/javascript" src="/ckeditor/ckeditor/ckeditor.js"></script> <textarea cols="80" id="htmlcontent" name="htmlcontent">$!htmlcontent</textarea><input name="htmleditor" type="hidden" value="fck"/><div id="fckeditorwrapper"><script type="text/javascript">        ckeditor.replace('htmlcontent');   </script>
 

你可能感兴趣的:(java,工作)