First I want to to congratulate the team for this excellent editor. Great work.
I am not a big fan of the file-browser window, it feels inconistent to me. I like the floating dialogs and would like to browse the files in a tab within a dialog. For this, I have to insert dynamically generated html into a dialog window.
As far as I understand, the dialogs have freely configurable forms, but I could not find out how to insert html.
Is this possible without changing the source of ck-editor? For example, I would like to show image-thumbnails at the beginning of the image dialog. When clicked, the path to the image is filled in in the conforming field. I did this in the old version of fck but was not happy, because I had to do it in the source. This would be fine, if I could do it by configuration (like the formfields, only that I would get the HTML by AJAX).
be happy
habsi
I am not a big fan of the file-browser window, it feels inconistent to me. I like the floating dialogs and would like to browse the files in a tab within a dialog. For this, I have to insert dynamically generated html into a dialog window.
As far as I understand, the dialogs have freely configurable forms, but I could not find out how to insert html.
Is this possible without changing the source of ck-editor? For example, I would like to show image-thumbnails at the beginning of the image dialog. When clicked, the path to the image is filled in in the conforming field. I did this in the old version of fck but was not happy, because I had to do it in the source. This would be fine, if I could do it by configuration (like the formfields, only that I would get the HTML by AJAX).
be happy
habsi
Re: File Browser within dialog window
Hi, I would recommend you to read this sample page which explain briefly how-to extend dialog without actually change the source.
http://nightly.ckeditor.com/latest/cked ... ialog.html
Re: File Browser within dialog window
Hi Garry,
thank you, I did that already. But the examples just scratch the surface.
I am currently looking into invoking the http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.ajax.html ajax load method with http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.dialog.dialogDefinition.html#onLoad the onload dialog Definition.
That means, I will load my content by ajax when the dialog is loaded. If I can pull it off, I will post this here on the forums.
be happy
habsi
Insert custom html into dialog
Adding a form field is quite easy, but the types of fields I had to find in the source of plugins.js. One of the types of fields is html. So I added the following lines to api_dialog.html:
I now try to find out, if I can load the html by calling CDEDITOR.ajax.load. At the moment I get an error. The ajax.load function is not defined.