Hi!
First: I am new to ckeditor but i read the docu and the API-docu and didn't get it right...
What I want to do is to write my own dialog which gets it content dynamicly when it's opend. I managed to add a dialog button and the dialog opens and i can add static elements.
Now I have a list of files on the server which could be modified. What I now want is that this list is also shown in the dialog box inside ckeditor. Imagine there are 3 entries, I open the dialog and see these 3 entries. Next time opening the dialog the list holds 10 entries and I want to see these 10 entries in the dialog.
I thought the best way reach this, was to use an event listener on the "show"-event of the dialog. When this event is fired I parse the list entries into an "dialogDefinition"-elements-Array and call commitContent on the dialog. This works great... the first time... every next time I get the "old", first content. I have the feeling that the listener function is cached in some way...
I'm really frustrated not finding any solution for this - can you help?
I hope my explanations are understandable... Thanks and Greetings
huehnerhose
First: I am new to ckeditor but i read the docu and the API-docu and didn't get it right...
What I want to do is to write my own dialog which gets it content dynamicly when it's opend. I managed to add a dialog button and the dialog opens and i can add static elements.
Now I have a list of files on the server which could be modified. What I now want is that this list is also shown in the dialog box inside ckeditor. Imagine there are 3 entries, I open the dialog and see these 3 entries. Next time opening the dialog the list holds 10 entries and I want to see these 10 entries in the dialog.
I thought the best way reach this, was to use an event listener on the "show"-event of the dialog. When this event is fired I parse the list entries into an "dialogDefinition"-elements-Array and call commitContent on the dialog. This works great... the first time... every next time I get the "old", first content. I have the feeling that the listener function is cached in some way...
I'm really frustrated not finding any solution for this - can you help?
I hope my explanations are understandable... Thanks and Greetings
huehnerhose