FCKeditor Problem

32 views
Skip to first unread message

Mitul Patel

unread,
May 9, 2011, 4:25:30 PM5/9/11
to Fitnium
Hi,
Here is the scenario for my problem.
I need to enter some information into a Text(Actually its not a Text
it's a FCKEDITOR).I am not able to enter a text in the Fckeditor. I
tried the enter and type api but its not help me.Any one have any idea
how to solve this problem. I tried with selenium IDE its also not
work. Any one know how to use TAB key in the Fitnium. Do we have any
API for access the TAB key( Like in fitnium we have ..shift,ctrl,alt
command).

Keith Sterling

unread,
May 10, 2011, 3:20:01 AM5/10/11
to Fitnium
I've had a quick look at FCKEditor and its a Javascript library that
provides a WYSIWYG editor on top of HTML

If you use Firebug to inspect the page with an Editor active, you will
see that all of the HTML is still there. The editor is just hiding it

Therefore you can still navigate to the HTML tags using something like
XPath and then just set the content of the tags you want

If you are adding new tags then I think you will need to use
Javascript to manipulate the DOM, but again Fitnium supports this
through the eval API

Mitul Patel

unread,
May 10, 2011, 10:57:09 AM5/10/11
to Fitnium
hi Keith
Can you please provide the sample code for this or how to used
javascript(EVAL API) in Fitnium??
> > command).- Hide quoted text -
>
> - Show quoted text -

Keith Sterling

unread,
May 10, 2011, 11:10:38 AM5/10/11
to Fitnium
The API to use is

| value of javascript | expression |

Where 'expression' is any snippet of Javascript, which can then be
used to manipulate the DOM model which is being hidden by the
FCKEditor

Say you know the ID of the HTML element you want to manipulate. I am
assuming that you are trying to input text into the FCKEditor on your
page.

| value of javascript | ' document.getElementByID("<Id of
element>").innerHTML="some text to add" ' |

Replace <id of element> with the ID of the element you want to insert
text into

Use Firebug to discover the root HTML element that FCKEditor is
attached to and then navigate from there down the DOM tree

Keith
Reply all
Reply to author
Forward
0 new messages