ckeditor.replace

38 views
Skip to first unread message

Florentine3D

unread,
Sep 20, 2010, 4:48:58 AM9/20/10
to gwt-ckeditor
How i make CKEditor.replace with gwt?
I have div element and addClickListener, but how call CKEditor.replace
I do not know.

Damien Picard

unread,
Sep 22, 2010, 1:36:23 AM9/22/10
to gwt-ck...@googlegroups.com
This is done automatically when you attach CKEditor widget to your page. Have you read the wiki ? http://code.google.com/p/gwt-ckeditor/wiki/QuickStart

2010/9/20 Florentine3D <artem....@gmail.com>

How i make CKEditor.replace with gwt?
I have div element and addClickListener, but how call CKEditor.replace
I do not know.



--
Damien Picard
Axeiya Services : http://axeiya.com/
gwt-ckeditor : http://code.google.com/p/gwt-ckeditor/

Florentine3D

unread,
Sep 22, 2010, 3:46:14 AM9/22/10
to gwt-ckeditor
In samples directory of gwt-ckeditor i found example with mouse double
click function on the text and gwt-ckeditor replace his. There run
JavaScript CKEditor.replace on <div> element.

On 22 сен, 09:36, Damien Picard <picard.dam...@gmail.com> wrote:
> This is done automatically when you attach CKEditor widget to your page.
> Have you read the wiki ?http://code.google.com/p/gwt-ckeditor/wiki/QuickStart
>
> 2010/9/20 Florentine3D <artem.boro...@gmail.com>

Damien Picard

unread,
Sep 22, 2010, 4:08:18 AM9/22/10
to gwt-ck...@googlegroups.com
This is a sample for CKEditor (http://ckeditor.com) ; gwt-ckeditor is only a wrapper for ckeditor in GWT.
Try the sample given in the QuickStart wiki page and read the JavaDoc for further functions : http://gwt-ckeditor.googlecode.com/svn/trunk/doc/index.html

2010/9/22 Florentine3D <artem....@gmail.com>

Florentine3D

unread,
Sep 22, 2010, 4:27:46 AM9/22/10
to gwt-ckeditor
I thought that I can somehow run the CKEditor functions in GWT-
ckeditor and you say me this
way

On 22 сен, 12:08, Damien Picard <picard.dam...@gmail.com> wrote:
> This is a sample for CKEditor (http://ckeditor.com) ; gwt-ckeditor is only a
> wrapper for ckeditor in GWT.
> Try the sample given in the QuickStart wiki page and read the JavaDoc for
> further functions :http://gwt-ckeditor.googlecode.com/svn/trunk/doc/index.html
>
> 2010/9/22 Florentine3D <artem.boro...@gmail.com>

Florentine3D

unread,
Sep 23, 2010, 3:23:46 AM9/23/10
to gwt-ckeditor
But the most difficult to realize the function CKEditor.replace in
your GWT-ckeditor and how approximately i realize this?

Damien Picard

unread,
Sep 23, 2010, 3:32:24 AM9/23/10
to gwt-ck...@googlegroups.com
The only way to execute CKEditor.* functions is to make a JSNI call : the aim of gwt-ckeditor is to abstract JavaScript, then we don't provide any function to make direct JS calls...

But you can do every of these calls by JSNI :

public native void myFunction() /*-{
       CKEditor.myfuction();
}-*/;

2010/9/23 Florentine3D <artem....@gmail.com>

Damien Picard

unread,
Sep 23, 2010, 3:36:05 AM9/23/10
to gwt-ck...@googlegroups.com
sorry, a mistake in my sample :


public native void myFunction() /*-{
       $wnd.CKEDITOR.myfuction();
}-*/;

2010/9/23 Damien Picard <picard...@gmail.com>

Florentine3D

unread,
Sep 23, 2010, 3:36:30 AM9/23/10
to gwt-ckeditor
Thank you. I try

On 23 сен, 11:32, Damien Picard <picard.dam...@gmail.com> wrote:
> The only way to execute CKEditor.* functions is to make a JSNI call : the
> aim of gwt-ckeditor is to abstract JavaScript, then we don't provide any
> function to make direct JS calls...
>
> But you can do every of these calls by JSNI :
>
> public native void myFunction() /*-{
>        CKEditor.myfuction();
>
> }-*/;
>
> 2010/9/23 Florentine3D <artem.boro...@gmail.com>
Reply all
Reply to author
Forward
0 new messages