编辑器如何调用js函数

id="displayPic_content"
style="height: 336px; width: 256px;"
onkeyup="fillpromotionContent(this);">
文本域可以带JS 函数
那编辑器可以带js函数么,例如:
basePath="${pageContext.request.contextPath }/plugin/FCKeditor/"
width="256" height="200" toolbarSet="Basic"
skinPath="${pageContext.request.contextPath }/plugin/FCKeditor/editor/skins/silver/"
defaultLanguage="zh-cn" tabSpaces="8"
imageBrowserURL="${pageContext.request.contextPath }/plugin/FCKeditor/editor/filemanager/browser/default/browser.html?Type=Image&Connector=connectors/jsp/connector"
linkBrowserURL="${pageContext.request.contextPath }/plugin/FCKeditor/editor/filemanager/browser/default/browser.html?Connector=connectors/jsp/connector"
flashBrowserURL="${pageContext.request.contextPath }/plugin/FCKeditor/editor/filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/jsp/connector"
imageUploadURL="${pageContext.request.contextPath }/plugin/FCKeditor/editor/filemanager/upload/simpleuploader?Type=Image"
linkUploadURL="${pageContext.request.contextPath }/plugin/FCKeditor/editor/filemanager/upload/simpleuploader?Type=File"
flashUploadURL="${pageContext.request.contextPath }/plugin/FCKeditor/editor/filemanager/upload/simpleuploader?Type=Flash">  
/FCK:editor

这种如何带JS 函数:onkeyup="fillpromotionContent(this);"

JS中监听事件
[code="java"] function FCKeditor_OnComplete ()

{

var oEditor = FCKeditorAPI.GetInstance('content') ;
oEditor.EditorDocument.attachEvent( "onkeydown", editor_keydown);

//oEditor.EditorDocument.attachEvent( "onkeyup", editor_keyup);

}

function editor_keydown()
{

    alert(" OK");
}[/code]