2005/10/03

FCKeditor

http://wiki.fckeditor.net/Developer%27s_Guide/Integration/Javascript

===========================================

window.onload = function()
{
// Automatically calculates the editor base path based on the _samples directory.
// This is usefull only for these samples. A real application should use something like this:
// oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
// var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;
var sBasePath = '/path_fckeditor';
var oFCKeditor = new FCKeditor( 'name_of_textarea' ) ;
oFCKeditor.BasePath = sBasePath ;
oFCKeditor.ToolbarSet = 'Basic' ; //較少的按鍵
oFCKeditor.Height = "450" ; //調整該form之高度
oFCKeditor.ReplaceTextarea() ;
}

0 Comments:

<< Home