18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

Integration with FCK editor

sethrohitsethrohit Members
edited December 2007 in Sahi - Open Source
Hi,

We are planning to use sahi for automated testing of our product. One of the major issues that I am facing right now is that we are using FCK editor (an html editor) in our product and I would like to capture data put in there. Is there any way that can be done? If I try to modify the code to do the same, will that be acceptable?

thanks
rohit

Comments

  • narayannarayan Administrators
    Most Rich Text Editors essentially use an iframe in designmode. Try to find a way to access the iframe and then you can access its contents by _byId('iframeId').contentWindow.document.body.innerHTML. If you could point me to a web site, I can help you get the contents.
  • I have the same problem and did not manage to reach that fckEditor box yet. So, any info would be more than appreciated...
  • narayannarayan Administrators
    edited January 2008
    On the fckeditor demo page (http://www.fckeditor.net/demo), we can access the editor content like this on firefox:
    _byId("FCKeditor1___Frame").contentWindow.frames[0].document.body.innerHTML
    
    I noticed that inside the first iframe there is another embedded iframe and so we have to use _byId("FCKeditor1___Frame").contentWindow.frames[0].

    Hope that helps.
  • That's exactly what bothered me the whole d*mn time - embedded iframes :) And since I'm not JavaScript expert in any way (for now :) ), this reply helps a lot!

    Thanks!
  • sorry, the fckeditor URL change to the ckeditor URL:
    (ckeditor.com/demo)

    i am not sure how many the page content change it.
    i try to reuse the script code, but could not run success...
Sign In or Register to comment.