• xe:Dialog with richtext not working in FF

    By Bernd Heitmann 1 decade ago

    This code is running in IE but not in FF. In FF the richtext is disabled. Has anyone found a fix for the Problem?

    <?xml version="1.0" encoding="UTF-8"?>
    
    <xp:view xmlns:xp="http://www.ibm.com/xsp/core" xmlns:xe="http://www.ibm.com/xsp/coreex">
    
    <xp:link escape="true" text="show" id="link1">
    
    <xp:eventHandler event="onclick" submit="true"
    
    refreshMode="complete" id="eventHandler1" refreshId="dialog">
    
    <xp:this.action id="this.action1"><![CDATA[#{javascript:getComponent('dialog1').show();}]]></xp:this.action>
    
    </xp:eventHandler>
    
    </xp:link>
    
    <xe:dialog id="dialog1">
    
    <xp:inputText id="inputText1"></xp:inputText>
    
    <xp:inputRichText id="inputRichText1"></xp:inputRichText>
    
    </xe:dialog>
    
    </xp:view>
    

    I am using Domino 9.0 and the Extension Library 900v00_01.20130415-0518.

     
    
    • This is a known issue - PHAN97ZGRB - and we're looking to get that addressed

      By Paul Hannan 1 decade ago

       

       

      • Any news about a fix? is a workaround avaible?

        By Bernd Heitmann 1 decade ago

         

        • Workaround

          By Alex J Woodall 1 decade ago

          I managed to sort this in Chrome by adding the following onFocus event to the Dialog (emailBody is the componentID of the Rich Text Field):

          <xp:eventHandler event="onFocus" submit="false">

          <xe:this.script>

          &lt;![CDATA[
          
          <span style="font-family:courier new,courier,monospace;">var FieldID = &quot;#{id:emailBody}&quot;; </span></div>
          
          var richCKEditor = CKEDITOR.instances[FieldID];
          
          richCKEditor.focus();
          
          ]]&gt;
          
          &lt;/xe:this.script&gt;
          
          &lt;/xp:eventHandler&gt;
          

          By calling the focus() on the CKEditor itself, the CKEditor code probably cleans up any race conditions/ issues caused by the CKEditor being created against an element that is not currently being shown.

          Shame on IBM, their workaround is "Use Internet Explorer", no wonder people are dropping Notes at the rate they are.