Problem with ckeditor's contents.css -- not getting loaded

14 views
Skip to first unread message

Tapan Ghia

unread,
Jun 8, 2011, 7:33:48 AM6/8/11
to gwt-ckeditor
Hi,

I have 3 ckeditor instances in a VerticlePanel. contents.css file
which controls the styling of the editor part of the ckeditor does not
get loaded for the first ckeditor instance, which eventually leads to
the content not getting populated in the editor (the ckeditor instance
with the minimum auto generated id like gwt-uid-14).

Please let me know, if anybody here has faced any problem of similar
nature. I have been stuck here for long and still not able to find a
solution.

Thanks

Damien Picard

unread,
Jun 24, 2011, 9:06:02 AM6/24/11
to gwt-ck...@googlegroups.com
Hi,

Could you give me a simple project/example leading to this issue ? I'm not able to reproduce it.

Thank you !

2011/6/8 Tapan Ghia <tapan...@gmail.com>



--
Damien Picard
Axeiya Services : http://axeiya.com/
gwt-ckeditor : http://code.google.com/p/gwt-ckeditor/
Mon livre sur GWT : http://axeiya.com/index.php/ouvrage-gwt.html

Tapan Ghia

unread,
Jun 28, 2011, 3:18:18 AM6/28/11
to gwt-ckeditor
Hi,

This is a link to the same question that i had posted on CKEditor's
discussion forum: http://cksource.com/forums/viewtopic.php?f=11&t=22697
This has a few screenshots added, demonstrating the exact issue.

I will try creating a separate sample application to replicate the
issue.

Thanks

On Jun 24, 6:06 pm, Damien Picard <picard.dam...@gmail.com> wrote:
> Hi,
>
> Could you give me a simple project/example leading to this issue ? I'm not
> able to reproduce it.
>
> Thank you !
>
> 2011/6/8 Tapan Ghia <tapan.g...@gmail.com>

alexh

unread,
Jun 29, 2011, 11:42:03 PM6/29/11
to gwt-ckeditor
Hi - I am having the same issue. Have you been able to resolve? I
didn't see any replies over on the ckeditor forum either.

Failed to load resource: cancelled - contents.css

The file is definitely on my server.

I also get:

TypeError: Result of expression 'i.contentWindow' [null] is not an
object. - ckeditor.js:19

As an aside if I am using version 1.0 of get-ckeditor then what
version of ckeditor should I be using?

Thanks

Damien Picard

unread,
Jun 30, 2011, 3:02:17 AM6/30/11
to gwt-ck...@googlegroups.com
I am getting the same issue too. The only way to workaround this is to load and remove an hidden CKEditor on application load.
I'll try with the latest snapshot if this is always the case.

Regards

2011/6/30 alexh <alexand...@gmail.com>

alexh

unread,
Jun 30, 2011, 1:48:01 PM6/30/11
to gwt-ckeditor
Hi Damien,

Do you have a snippet of what you are referring to? You are creating a
hidden editor on application load and this helps with the other issue?

In my case the editor I'm having trouble with isn't visible on
application load but get's loaded later in the app from a different
view. I'm using gwt-presenter and UiBinder.

Thanks!

On Jun 30, 2:02 am, Damien Picard <picard.dam...@gmail.com> wrote:
> I am getting the same issue too. The only way to workaround this is to load
> and remove an hidden CKEditor on application load.
> I'll try with the latest snapshot if this is always the case.
>
> Regards
>
> 2011/6/30 alexh <alexanderhar...@gmail.com>

Damien Picard

unread,
Jul 1, 2011, 3:37:59 AM7/1/11
to gwt-ck...@googlegroups.com
You can download the latest one here : http://nexus.axeiya.com/nexus/service/local/repositories/snapshots/content/com/axeiya/gwt/gwt-ckeditor/1.1-SNAPSHOT/gwt-ckeditor-1.1-20110628.080330-4.jar

Yes, creating one as soon as the app start has help me to deal with this issue.

2011/6/30 alexh <alexand...@gmail.com>

Tapan Ghia

unread,
Jul 1, 2011, 3:46:36 AM7/1/11
to gwt-ckeditor
Hi Alex,

The way i got it working was:
In a constructor of 1 of the DeckPanels, i have initialized an
instance of CKEditor like:

....
private CKEditor toBeRemovedEditor;

/**
* Default Constructor
*/
public WiresEditDeckPanel() {
super(Unit.EM);

titleEditorConfig = getCKConfigTitle();
synopsisEditorConfig = getCKConfigSynopsis();
storyEditorConfig = getCKConfigStory();

// Temporary CKEditor is being initialized, this will be removed
once the page is populated
toBeRemovedEditor = new CKEditor();
titleSynopsisPanel.add(toBeRemovedEditor);

.......(All other ckeditor instances are initialized
after this.)


And in a method, which gets called, just before this deckpanel is made
visible, i remove this CKeditor instance from the panel:

private void populateWireEditDeckPanelSubWidgets() {

// Removing the CKEditor instance, that was added temporarily
titleSynopsisPanel.remove(toBeRemovedEditor);
....

This was my case when i load all ckeditor instances on application
load. You could do the same thing, whenever your view gets loaded/
initialized anytime in the application's timeline.

Hope this helps.
Thanks
Reply all
Reply to author
Forward
0 new messages