Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » CKeditor
CKeditor [message #896062] Tue, 17 July 2012 06:48 Go to next message
Alexander Knieper is currently offline Alexander KnieperFriend
Messages: 5
Registered: July 2012
Junior Member
Hello,


I´m using RAP Standalone with version 1.5.
I have developed a program that saves scripts in a Mysql database.
I write the Scripts in a CKEditor and then i click a button(save).


My question is: how do I get the text from the text area?
I have tried the:
getText();
setText();
getData();
Method, but that doesnt work.


see File Attachments





[Updated on: Tue, 17 July 2012 07:22]

Report message to a moderator

Re: CKeditor [message #896101 is a reply to message #896062] Tue, 17 July 2012 09:22 Go to previous messageGo to next message
Tim Buschtoens is currently offline Tim BuschtoensFriend
Messages: 396
Registered: July 2009
Senior Member
Hi.

This might happen if you use JEE mode, which i guess you do. (If you
already use SWT compatibility this is another issue than i think it is.)
Either use SWT compatibility mode, or wait 'till i fix this (sometime in
the coming weeks). The fix will involve a callback mechanism instead of
a getText method.

IF you are interested in the hows and whys:

SWT vs. JEE mode:
http://eclipse.org/rap/developers-guide/devguide.php?topic=advanced/application-setup.html#compat


The issue with JEE and browser widget:
http://eclipse.org/rap/developers-guide/devguide.php?topic=rwt/differences.html#browser

Greetings,
Tim

Am 17.07.2012 08:48, schrieb Alexander Knieper:
> Hello,
>
>
> I´m using RAP Standalone with version 1.5.
> I have developed a program that saves scripts in a Mysql database.
> I write the Scripts in a CKEditor and then i click a button(save).
>
> My question is: how do I get the text from the text area? I have tried
> the:
> getText();
> setText();
> getData();
> Method, but that doesnt work.
>
>
>
>
>

--
Tim Buschtöns

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: CKeditor [message #896336 is a reply to message #896101] Wed, 18 July 2012 06:31 Go to previous messageGo to next message
Alexander Knieper is currently offline Alexander KnieperFriend
Messages: 5
Registered: July 2012
Junior Member
How can i use/start the SWT compatibility mode?
Re: CKeditor [message #896351 is a reply to message #896336] Wed, 18 July 2012 07:12 Go to previous messageGo to next message
Alexander Knieper is currently offline Alexander KnieperFriend
Messages: 5
Registered: July 2012
Junior Member
Alexander Knieper wrote on Wed, 18 July 2012 02:31
How can i use/start the SWT compatibility mode?



I have set the swt mode with the Method
application.setOperationMode(OperationMode.SWT_COMPATIBILITY);
before the entrypoint.
When i started the programm the popup (the methods in JEE Mode doesnt exist) doesnt come.

But now the buttons doesnt work!

Re: CKeditor [message #896352 is a reply to message #896351] Wed, 18 July 2012 07:25 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

In SWT mode, your entrypoint needs an SWT mainloop:

while( !shell.isDisposed() ) {
if( !display.readAndDispatch() ) {
display.sleep();
}
}
display.dispose();

Regards, Ralf

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: CKeditor [message #896425 is a reply to message #896352] Wed, 18 July 2012 11:36 Go to previous messageGo to next message
Alexander Knieper is currently offline Alexander KnieperFriend
Messages: 5
Registered: July 2012
Junior Member
Thanks for your help.

It works Smile
Re: CKeditor [message #903120 is a reply to message #896101] Wed, 22 August 2012 06:35 Go to previous messageGo to next message
Alexander Knieper is currently offline Alexander KnieperFriend
Messages: 5
Registered: July 2012
Junior Member
Tim Buschtoens wrote on Tue, 17 July 2012 05:22
Hi.

This might happen if you use JEE mode, which i guess you do. (If you
already use SWT compatibility this is another issue than i think it is.)
Either use SWT compatibility mode, or wait 'till i fix this (sometime in
the coming weeks). The fix will involve a callback mechanism instead of
a getText method.




Is the fix which involve a callback mechanism instead of a getText Method published?
Re: CKeditor [message #903341 is a reply to message #903120] Thu, 23 August 2012 08:48 Go to previous message
Tim Buschtoens is currently offline Tim BuschtoensFriend
Messages: 396
Registered: July 2009
Senior Member
Hi!

> Is the fix which involve a callback mechanism instead of a getText
> Method published?


Yes, it's in the "JEE" branch. We didn't advertise it much because it's
not really an ideal solution. We recommend to use the widget with the
SWT compatibility mode if possible.

Greetings,
Tim

>

--
Tim Buschtöns

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:Logout
Next Topic:Problem to proxy RAP-Runtime in Nexus
Goto Forum:
  


Current Time: Sat Apr 20 05:13:26 GMT 2024

Powered by FUDForum. Page generated in 0.05573 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top