Example: var oFCKeditor = FCKeditor( 'FCKeditor1' ) ;//建立FCKeditor名字 Properties InstanceName The name of the this editor instance. Width The width of the editor in pixels or percent. Numeric values are handled as pixels. Default Value: "100%" Examples: oFCKeditor.Width = 400 ; // 400 pixels oFCKeditor.Width = "250" ; // 250 pixels oFCKeditor.Width = "80%" ; // 80 percent Height The height of the editor in pixels or percent. Numeric values are handled as pixels. Default Value: "200" Examples: oFCKeditor.Height = 400 ; // 400 pixels oFCKeditor.Height = "250" ; // 250 pixels oFCKeditor.Height = "100%" ; // 100 percent ToolbarSet The Toolbar to use. Refers to the configuration in the fckconfig.js file. Default Value: "Default" Example: oFCKeditor.ToolbarSet = "MyToolbar" ; Value The initial value (the HTML) to show in the editor at startup. Default Value: Example: oFCKeditor.Value = "
Testing
This is a sample." ; This value can not contain line characters such as "\n" and "\r". So you need to strip them out before you assign a to oFCKeditor.Value. You also have to escape each " with a \. see below oFCKeditor.Value = "The book is called \"The Last Minute\"" ; BasePath The path used by the editor to find its code base. In other words, the directory where the editor’s package has been ed in your site (the directory containing the editor directory and fckconfig.js, fckeditor.js, etc.). Default Value: "/fckeditor/" Example: oFCKeditor.BasePath = "/Components/FCKeditor/" ; Remarks: Avoid using relative paths. It is preferable to the base path starting from the root (/). Always finish the path with a slash (/). CheckBrowser Tells this instance to check the browser compatibility when rendering the editor. Default Value: true Example: oFCKeditor.CheckBrowser = true ; Remarks:
This option could be useful the check was made at the server side.
DisplayErrors Tells this instance to show error messages _disibledevent=> in the page with the FCKeditor instance. The Textarea must have its "id" to the editor InstanceName. If the "id" is not found, the editor uses the TEXTAREA "name" for the replacement.
Example:
window.onload = function
{
var oFCKeditor = FCKeditor( 'MyTextarea ' ) ;
oFCKeditor.ReplaceTextarea ;
}
...
<textarea id="MyTextarea" name= "MyTextarea">
This is <b>the</b> initial value.
If you end to post the editor contents through a form (the most obvious use of the editor), you must the "name" attribute of the TEXTAREA. It is useful, to not get confused, to use the same value as used for the "id" attribute. 9.FCKeditor瘦身 ()将FCKeditor目录下些文件删除(JSP开发) sudo rm *.afp *.asp *.cfc *.lasso *.php *.pl *.py *.txt ( 2)将FCKeditor/editor目录下以"_"开头目录删除 sudo rm -r _*