php - Want to Call Javascript in FCKeditor code -


i want call onblur function in fckeditors.

here 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 ='650px';   $ofckeditor->create() ;   ?> 

can me sort out problem?

thanks in advance.

kanji

don't think so, it's possible set in php. can achieve 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> 

Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -