Please note that Sahi's development and support teams do not actively monitor this. This is more a community forum. If you are a Sahi Pro user looking for commercial support, please email support @ sahipro.com with your query.

Error: Permission denied to access property 'document' with CKEditor

PachatPachat Members
edited September 2011 in Sahi - Open Source
Hi narayan,

I followed your advice in this thread http://sahi.co.in/forums/viewtopic.php?id=2857
and it has been working for a while.

But now, I get an error and don't see where it comes from.

1°) The line
var $content = _rteHTML(_rte(0));
raises in the logs
http://dev-vaio/_s_/spr/concat.js:3740http://dev-vaio/_s_/spr/concat.js:3016http://dev-vaio/_s_/spr/concat.js:3016http://dev-vaio/_s_/spr/concat.js:2822

2°) The line
_rteWrite(_rte(0), "Activity");
raises in the logs
http://dev-vaio/_s_/spr/concat.js:3737http://dev-vaio/_s_/spr/concat.js:3016http://dev-vaio/_s_/spr/concat.js:3016http://dev-vaio/_s_/spr/concat.js:2822

Both cases, give a --Stopped Playback: FAILURE--

Could you put me on the right track ?

Comments

  • Hi Pachat,

    Ctrl+Hover on _rte(0) to find what exactly you wanted. There is a possibility that _rte(0) is changed.And replace the same with the above code.

    Check if this solves your issue.

    Regards
    Sumitra
  • Thanks for answering.

    Unfortunately, when I Ctrl+Hoover over the RTE CkEditor, nothing appears in the controler to tell me the name. In fact, it stops at the border of the iFrame inside which CKEditor places the text.

    As a work around, I changed
    _rteWrite(_rte(7), "<p><strong>Bold</strong> and <em>italic</em>...</p>");
    
    to
    _setValue(_textarea("txta-97"), "<p><strong>Bold</strong> and <em>italic</em>...</p>");
    
    feeding directly the original textarea that CKEditor hide to install the CKEditor in place.

    This works well on my local computer (W7 XAMPP)
    But not on the production site : there, neither _rteWrite(_rte(7),.. neither _rteWrite(_rte(7), works.

    Do you have a solution to have the textarea or the CKEditor to be written by sahi ?
  • Hi Pachat,

    It is possible that the CKEditor is now locatede in an IFrame from different sub-domain.

    To make Sahi work, you need to add the URL pattern and base domain to sahi/userdata/config/domainfix.txt
    Eg:
    *.facebook.com facebook.com

    and restart the sahi to take effect.

    If still the problem exist,let us know.

    Regards,
    Theeran.
  • PachatPachat Members
    edited October 2011
    Thank you for your answer.
    Actually, the DOM does not show any other site :
    <textarea class="txtaTextArea" style="width: 730px; visibility: hidden; display: none;" id="txta-77" name="txta-77" cols="" rows="2" lang="1000"></textarea> 
       <span id="cke_txta-77_arialbl" class="cke_voice_label">Rich Text Editor</span></span>
        <table class="cke_editor" role="presentation" border="0" cellpadding="0" cellspacing="0">
          <tbody>
            <tr style="-moz-user-select: none;" role="presentation">
              <td id="cke_top_txta-77" class="cke_top" role="presentation">
                  <span>TOOLBAR...</span>
              </td>
            </tr>
            <tr role="presentation">
              <td id="cke_contents_txta-77" class="cke_contents" style="height:60px" role="presentation">
                <iframe style="width:100%;height:100%" title="Rich Text Editor" src="" tabindex="0" allowtransparency="true" frameborder="0"></iframe>
              </td>
            </tr>
          </tbody>
        </table>
    
    The problem is that Sahi does not see the editor, neither by Ctrl+Hoover, neither by _rte(0). So it is not possible to put any text inside.
Sign In or Register to comment.