|
View:
New views
9 Messages
—
Rating Filter:
Alert me
|
|
|
Retrieving content from express edit instanceHi All ,
I am looking for some help regarding express edit. I am facing some issues while retrieving content from the express edit editor instance. I have created an express edit editor instance (text_editor) and for retrieving the content from the editor i am calling text_editor.GetBody(<functionname>,true) , but i am not getting the values that i have entered into the editor . My question is While using express edit , how do we retrieve the content that has been edited from the express edit instance . Thank you kishore |
|
|
Re: Retrieving content from express edit instanceHi Kishore,
The GetBody method should work with express edit. Can you post the code you're using to instantiate the editor and get the content back out? One common pitfall is that the GetBody function is asynchronous so the GetBody call will return before the callback function is called. That's just a guess without seeing the actual code though. Regards, Adrian Sutton. ______________________ Adrian Sutton, CTO Global Direct: +1 (650) 292 9659 x717 Australia: +61 (7) 3858 0118 Ephox <http://www.ephox.com/> Ephox Blogs <http://planet.ephox.com/>, Personal Blog <http://www.symphonious.net/ > On 17/11/2007, at 9:46 PM, Bhaskaran Kishore Kumar wrote: > Hi All , > > I am looking for some help regarding express edit. > > I am facing some issues while retrieving content from the express edit > editor instance. I have created an express edit editor instance > (text_editor) and for retrieving the content from the editor i am > calling text_editor.GetBody(<functionname>,true) , but i am not > getting the values that i have entered into the editor . > > My question is > > While using express edit , how do we retrieve the content that has > been edited from the express edit instance . > > > Thank you > kishore > _______________________________________________ > LiveWorks mailing list > LiveWorks@... > http://liveworks.ephox.com/mailing-list/ |
|
|
Re: Retrieving content from express edit instanceSounds like there's a bug in our JavaScript, try it without the true
parameter. If that works it will be an easy fix we can get out on Monday. Cheers, Andy -------------------------------------------------- From: "Bhaskaran Kishore Kumar" <kishore.bhaskaran@...> Sent: Saturday, November 17, 2007 9:46 PM To: <liveworks@...> Subject: [Liveworks] Retrieving content from express edit instance > Hi All , > > I am looking for some help regarding express edit. > > I am facing some issues while retrieving content from the express edit > editor instance. I have created an express edit editor instance > (text_editor) and for retrieving the content from the editor i am > calling text_editor.GetBody(<functionname>,true) , but i am not > getting the values that i have entered into the editor . > > My question is > > While using express edit , how do we retrieve the content that has > been edited from the express edit instance . > > > Thank you > kishore > _______________________________________________ > LiveWorks mailing list > LiveWorks@... > http://liveworks.ephox.com/mailing-list/ > > |
|
|
Re: Retrieving content from express edit instanceI tried by not passing true , still the call back function is not
getting invoked. In the known issues list for express edit , its mentioned that content preservation is not done for express edit . What does this mean ? thank you kishore On Nov 18, 2007 5:03 AM, Andrew Herron <thespyder@...> wrote: > Sounds like there's a bug in our JavaScript, try it without the true > parameter. If that works it will be an easy fix we can get out on Monday. > > > Cheers, > Andy > > -------------------------------------------------- > From: "Bhaskaran Kishore Kumar" <kishore.bhaskaran@...> > Sent: Saturday, November 17, 2007 9:46 PM > To: <liveworks@...> > Subject: [Liveworks] Retrieving content from express edit instance > > > > Hi All , > > > > I am looking for some help regarding express edit. > > > > I am facing some issues while retrieving content from the express edit > > editor instance. I have created an express edit editor instance > > (text_editor) and for retrieving the content from the editor i am > > calling text_editor.GetBody(<functionname>,true) , but i am not > > getting the values that i have entered into the editor . > > > > My question is > > > > While using express edit , how do we retrieve the content that has > > been edited from the express edit instance . > > > > > > Thank you > > kishore > > > _______________________________________________ > > LiveWorks mailing list > > LiveWorks@... > > http://liveworks.ephox.com/mailing-list/ > > > > > _______________________________________________ > LiveWorks mailing list > LiveWorks@... > http://liveworks.ephox.com/mailing-list/ > |
|
|
Re: Retrieving content from express edit instance> In the known issues list for express edit , its mentioned that content
> preservation is not done for express edit . What does this mean ? Content preservation is a feature we added in 6.0 so that if you accidentally navigate to another page and then click the back button, EditLive! will preserve any changes you made to the content like normally happens with text areas. With most editors, the content reverts to the original version. It's not related to the problems you're having. We probably need to see the code to help you track down what's going on. There's something specific to your situation. Regards, Adrian Sutton. ______________________ Adrian Sutton, CTO Global Direct: +1 (650) 292 9659 x717 Australia: +61 (7) 3858 0118 Ephox <http://www.ephox.com/> Ephox Blogs <http://planet.ephox.com/>, Personal Blog <http://www.symphonious.net/ > |
|
|
Re: Retrieving content from express edit instanceHi Adrian ,
Thank you for the help This is how i am creating and using the editor //editor instantiation <script> var text_value =new EditLiveJava("ELJApplet","700","400"); var text= document.all.bodytemp.value; text_value.setDownloadDirectory(downloadlocation); text_value.setConfigurationFile(configxml); text_value.setExpressEdit(true); text_value.setAutoSubmit(false); text_value.setLocalDeployment(false); //text_value.setBody(encodeURIComponent(text)); text_value.show(); alert('stage 5'); </script> Here is the call back function //Call back function function getELJData(src) { document.composeform.<%= FormFields.FILE_CONTENT %>.value = src; document.all.test1.style.visibility = 'hidden'; document.composeform.<%= FormFields.FILE_CONTENT %>.style.visibility='visible'; document.composeform.<%= FormFields.FILE_CONTENT %>.focus(); } //To retrieve content from editor text_value.GetBody("getELJData",true); Am i missing something ? The issue is the call back function is not getting executed . Thank you kishore On Nov 18, 2007 4:17 AM, Adrian Sutton <adrian.sutton@...> wrote: > Hi Kishore, > The GetBody method should work with express edit. Can you post the > code you're using to instantiate the editor and get the content back > out? > > One common pitfall is that the GetBody function is asynchronous so the > GetBody call will return before the callback function is called. > That's just a guess without seeing the actual code though. > > Regards, > > Adrian Sutton. > ______________________ > Adrian Sutton, CTO > Global Direct: +1 (650) 292 9659 x717 Australia: +61 (7) 3858 0118 > Ephox <http://www.ephox.com/> > Ephox Blogs <http://planet.ephox.com/>, Personal Blog <http://www.symphonious.net/ > > > > > On 17/11/2007, at 9:46 PM, Bhaskaran Kishore Kumar wrote: > > > Hi All , > > > > I am looking for some help regarding express edit. > > > > I am facing some issues while retrieving content from the express edit > > editor instance. I have created an express edit editor instance > > (text_editor) and for retrieving the content from the editor i am > > calling text_editor.GetBody(<functionname>,true) , but i am not > > getting the values that i have entered into the editor . > > > > My question is > > > > While using express edit , how do we retrieve the content that has > > been edited from the express edit instance . > > > > > > Thank you > > kishore > > _______________________________________________ > > LiveWorks mailing list > > LiveWorks@... > > http://liveworks.ephox.com/mailing-list/ > > _______________________________________________ > LiveWorks mailing list > LiveWorks@... > http://liveworks.ephox.com/mailing-list/ > |
|
|
Re: Retrieving content from express edit instanceLooks good to me. When does the text_value.GetBody("getELJData",true);
get executed? Regards, Adrian Sutton. ______________________ Adrian Sutton, CTO Global Direct: +1 (650) 292 9659 x717 Australia: +61 (7) 3858 0118 Ephox <http://www.ephox.com/> Ephox Blogs <http://planet.ephox.com/>, Personal Blog <http://www.symphonious.net/ > On 19/11/2007, at 3:37 PM, Bhaskaran Kishore Kumar wrote: > Hi Adrian , > > Thank you for the help > > This is how i am creating and using the editor > > //editor instantiation > <script> > var text_value =new EditLiveJava("ELJApplet","700","400"); > var text= document.all.bodytemp.value; > text_value.setDownloadDirectory(downloadlocation); > text_value.setConfigurationFile(configxml); > text_value.setExpressEdit(true); > text_value.setAutoSubmit(false); > text_value.setLocalDeployment(false); > //text_value.setBody(encodeURIComponent(text)); > text_value.show(); > alert('stage 5'); > </script> > > > Here is the call back function > //Call back function > function getELJData(src) { > document.composeform.<%= FormFields.FILE_CONTENT %>.value = src; > document.all.test1.style.visibility = 'hidden'; > document.composeform.<%= FormFields.FILE_CONTENT > %>.style.visibility='visible'; > document.composeform.<%= FormFields.FILE_CONTENT %>.focus(); > } > > > //To retrieve content from editor > > text_value.GetBody("getELJData",true); > > Am i missing something ? The issue is the call back function is not > getting executed . > > Thank you > kishore |
|
|
Re: Retrieving content from express edit instanceThe UI is like this ,there is a text area and the editor , user has
the option to choose either the text area or the editor . The toggling between the editor and the text area can be done by using a check box. The text_value.GetBody("getELJData",true); gets executed when the user unchecks the check box . When user unchecks the check box , we would like the get the value from the editor and set it into the text area . I will do some more investigation and let you know , if there is any issue on our end . Thank you once again for you help kishore On Nov 19, 2007 11:10 AM, Adrian Sutton <adrian.sutton@...> wrote: > Looks good to me. When does the text_value.GetBody("getELJData",true); > get executed? > > Regards, > > Adrian Sutton. > ______________________ > Adrian Sutton, CTO > Global Direct: +1 (650) 292 9659 x717 Australia: +61 (7) 3858 0118 > Ephox <http://www.ephox.com/> > Ephox Blogs <http://planet.ephox.com/>, Personal Blog <http://www.symphonious.net/ > > > > > On 19/11/2007, at 3:37 PM, Bhaskaran Kishore Kumar wrote: > > > Hi Adrian , > > > > Thank you for the help > > > > This is how i am creating and using the editor > > > > //editor instantiation > > <script> > > var text_value =new EditLiveJava("ELJApplet","700","400"); > > var text= document.all.bodytemp.value; > > text_value.setDownloadDirectory(downloadlocation); > > text_value.setConfigurationFile(configxml); > > text_value.setExpressEdit(true); > > text_value.setAutoSubmit(false); > > text_value.setLocalDeployment(false); > > //text_value.setBody(encodeURIComponent(text)); > > text_value.show(); > > alert('stage 5'); > > </script> > > > > > > Here is the call back function > > //Call back function > > function getELJData(src) { > > document.composeform.<%= FormFields.FILE_CONTENT %>.value = src; > > document.all.test1.style.visibility = 'hidden'; > > document.composeform.<%= FormFields.FILE_CONTENT > > %>.style.visibility='visible'; > > document.composeform.<%= FormFields.FILE_CONTENT %>.focus(); > > } > > > > > > //To retrieve content from editor > > > > text_value.GetBody("getELJData",true); > > > > Am i missing something ? The issue is the call back function is not > > getting executed . > > > > Thank you > > kishore > > > _______________________________________________ > LiveWorks mailing list > LiveWorks@... > http://liveworks.ephox.com/mailing-list/ > |
|
|
Re: Retrieving content from express edit instanceHi Kishore,
I did up a quick test case based on your code and GetBody is definitely working for me so it's likely to be something else - either an error in your UI code or some other specific situation. Check for any JavaScript errors on the page? The test case I used is below. Let us know what you find. Regards, Adrian Sutton. ______________________ Adrian Sutton, CTO Global Direct: +1 (650) 292 9659 x717 Australia: +61 (7) 3858 0118 Ephox <http://www.ephox.com/> Ephox Blogs <http://planet.ephox.com/>, Personal Blog <http://www.symphonious.net/ > <?xml version="1.0" ?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Title</title> </head> <body> <textarea id="output"></textarea> <script language="JavaScript" type="text/javascript" src="editlivejava/ editlivejava.js"></script> <script language="JavaScript" type="text/javascript" src="editlivejava/ expressEdit/expressEdit.js"></script> <script language="JavaScript" type="text/javascript"> var text_value =new EditLiveJava("ELJApplet","700","400"); text_value.setExpressEdit("always"); text_value.setAutoSubmit(false); text_value.setLocalDeployment(false); text_value.show(); //Call back function function getELJData(src) { alert(src); document.getElementById('output').value = src; } text_value.GetBody("getELJData",true); </script> <input type="checkbox" onclick="text_value.GetBody('getELJData', true)" /> </body> </html> |
| Free Forum Powered by Nabble | Forum Help |