开发者

Want to Call Javascript in FCKeditor code

开发者 https://www.devze.com 2023-01-25 12:43 出处:网络
I want to call onblur function in FCKeditors. Here is the my code. <?php $oFCKeditor = new FCKeditor(\'conf_emailtext[\'.$this->escape($data->conf_id).\']\') ;

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

精彩评论

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