CKEDITOR.editorConfig = function( config )
{
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';
config.filebrowserBrowseUrl = 'imagegallery.html'; //this is a link to the page that displays your preuploaded images
config.filebrowserUploadUrl = 'uploadFile.html; //this is the link new files are posted to if they upload a new one.
};
stylo~ wrote:Speaking of confusing, how about how to add a simple custom button or dropdown to insert text? This obvious question has been asked on this forum about 500 times with no answer yet.
I have been changing and adding plugins quite a lot and have found it relatively easy.
I have used the config options removePlugins and extraPlugins. Obviously this means that your new plugin needs to be renamed slightly different from the one it is overwritting but that makes sense if anyone else has to come along and tweak you code as they will know it is nolonger core. (also means it wont be overwritten when you upgrade ckeditor)
e.g. removePlugins:'save,resize', extraPlugins:'saveCMS,cmslocation,cmstemplate,autogrow',
you can also pass bespoke config options thr the config area e.g. filebrowser_cmsbrowse : '/cgi-bin/go.pl/admin/cms-browse-ckeditor.html', filebrowser_image_browse_url : '/ckfinder/ckfinder4cms.html?action=js&func=SetUrl&thumbFunc=SetUrl&Type=Images', filebrowser_file_browse_url : '/ckfinder/ckfinder4cms.html?action=js&func=SetUrl&thumbFunc=SetUrl&Type=Files',
which means you can change these for each instance and then just have your plugin read the path/value that you need to alter from the config file.
peej wrote:You can use a custom image browser with the standard image button without having to build a plugin. It doesn't appear to be working properly at the moment: viewtopic.php?f=11&t=15618
but if you set the configuration to recognize your pages like so:
CKEDITOR.editorConfig = function( config )
{
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';
config.filebrowserBrowseUrl = 'imagegallery.html'; //this is a link to the page that displays your preuploaded images
config.filebrowserUploadUrl = 'uploadFile.html; //this is the link new files are posted to if they upload a new one.
};
Re: Plugin development VERY confusing
CKEDITOR.editorConfig = function( config ) { // Define changes to default configuration here. For example: // config.language = 'fr'; // config.uiColor = '#AADC6E'; config.filebrowserBrowseUrl = 'imagegallery.html'; //this is a link to the page that displays your preuploaded images config.filebrowserUploadUrl = 'uploadFile.html; //this is the link new files are posted to if they upload a new one. };http://docs.fckeditor.net/CKEditor_3.x/ ... _(Uploader
Re: Plugin development VERY confusing
This obvious question has been asked on this forum about 500 times with no answer yet.
Re: Plugin development VERY confusing
viewtopic.php?f=11&t=15586&hilit=dialog+definition
viewtopic.php?f=11&t=15622&hilit=+dialog+link+page
Re: Plugin development VERY confusing
I have used the config options removePlugins and extraPlugins. Obviously this means that your new plugin needs to be renamed slightly different from the one it is overwritting but that makes sense if anyone else has to come along and tweak you code as they will know it is nolonger core. (also means it wont be overwritten when you upgrade ckeditor)
e.g.
removePlugins:'save,resize',
extraPlugins:'saveCMS,cmslocation,cmstemplate,autogrow',
you can also pass bespoke config options thr the config area
e.g.
filebrowser_cmsbrowse : '/cgi-bin/go.pl/admin/cms-browse-ckeditor.html',
filebrowser_image_browse_url : '/ckfinder/ckfinder4cms.html?action=js&func=SetUrl&thumbFunc=SetUrl&Type=Images',
filebrowser_file_browse_url : '/ckfinder/ckfinder4cms.html?action=js&func=SetUrl&thumbFunc=SetUrl&Type=Files',
which means you can change these for each instance and then just have your plugin read the path/value that you need to alter from the config file.
Re: Plugin development VERY confusing
Re: Plugin development VERY confusing
http://syrinx.ph/articles/CkEditorPluginGuide.aspx