CkEditor is now being used in OpenWebMail!
OpenWebMail allows users to attach images to messages. The attached images are available via long URLs that the user cannot possibly know. We created a small patch to pass these long URLs to the image plugin, so that users can select already attached images to use in rich-text message bodies.
--- image.js 2011-05-25 09:12:48.717321000 -0700 +++ image.js 2011-07-09 01:27:57.000000000 -0700 @@ -492,6 +480,20 @@ elements : [ { + id : 'cmbAttachments', + type : 'select', + label : 'Attachments', + hidden : (editor.config.imageAttachments.unshift([editor.lang.common.notSet,'']) == 1 ? true : false), + items : editor.config.imageAttachments, + onChange : function() + { + var dialog = this.getDialog(), + newUrl = this.getValue(); + + dialog.setValueOf( 'info', 'txtUrl', newUrl ); + } + }, + { type : 'vbox', padding : 0, children :
The imageAttachments array is defined when the editor is configured:
CKEDITOR.replace( 'body', { imageAttachments : [ ['someimage.gif', '/services/webmail/openwebmail-current/cgi-bin/openwebmail/openwebmail-viewatt.pl/someimage.gif?action=viewattfile'] ] } );
It would be great to see this or a similiar functionality that allows the passing of known URLs into the image plugin show up in future releases.
Thanks,
The OpenWebMail Team
Re: PATCH: OpenWebMail integration
Thanks for sharing your code and congratulations on integrating CKEditor with OpenWebMail! Since this is a custom solution, I would suggest that you move this functionality to a plugin. This should make future upgrades much easier since you would not need to patch the core again.
See Plugin Tutorials for some step-by-step demonstrations of how to create CKEditor plugins.
Documentation Manager, CKSource
See CKEditor 5 docs, CKEditor 4 docs, CKEditor 3 docs, CKFinder 3 docs, CKFinder 2 docs for help.
Visit the new CKEditor SDK for samples showcasing editor features to try out and download!