开发者

Want to Call Javascript in FCKeditor code

I want to call onblur function in FCKeditors.

Here is the my code.

  <?php
  $oFCKeditor = new FCKeditor('conf_emailtext['.$this->escape($data->conf_id).']') ;  
  $oFCKeditor->BasePath = $this->baseUrl().'/FCKeditor/' ;
  $oFCKeditor->Value =  $this->arrMailList[$i]['conf_emailtext'];
  $oFCKeditor->Height ='400px';
  $oFCKeditor->Width ='开发者_JS百科650px';
  $oFCKeditor->Create() ;
  ?>

Can anybody help me to sort out this problem?

Thanks in advance.

Kanji


Don't think so, it's possible to set in PHP. However you can achieve this using Javascript on HTML/template page.

<script type="text/javascript" language="javascript">
function FCKeditor_OnComplete( editor_instance)
{
   editor_instance.Events.AttachEvent( 'OnFocus', DoSomething ) ;
   editor_instance.Events.AttachEvent( 'OnBlur', DoSomething1 ) ;
}
</script>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜