Hey,
I'm new to ckeditor, now I've managed to set up the custom upload script, but on the same page of the inputfile, i've a textbox users are able to fill in for custom copyright...
Now I've edited some code, but finally don't know how I have to retrieve the value of that textbox...
the id of the textbox is 'copyright'
so in the filebrowser plugin you have the function attachfilebrowser....
Someone who can help me?
I'm new to ckeditor, now I've managed to set up the custom upload script, but on the same page of the inputfile, i've a textbox users are able to fill in for custom copyright...
Now I've edited some code, but finally don't know how I have to retrieve the value of that textbox...
the id of the textbox is 'copyright'
so in the filebrowser plugin you have the function attachfilebrowser....
function attachFileBrowser( editor, dialogName, definition, elements ) { var element, fileInput; for ( var i in elements ) { element = elements[ i ]; if ( element.type == 'hbox' || element.type == 'vbox' || element.type == 'fieldset' ) attachFileBrowser( editor, dialogName, definition, element.children ); if ( !element.filebrowser ) continue; if ( typeof element.filebrowser == 'string' ) { var fb = { action : ( element.type == 'fileButton' ) ? 'QuickUpload' : 'Browse', target : element.filebrowser }; element.filebrowser = fb; } if ( element.filebrowser.action == 'Browse' ) { var url = element.filebrowser.url; if ( url === undefined ) { url = editor.config[ 'filebrowser' + ucFirst( dialogName ) + 'BrowseUrl' ]; if ( url === undefined ) url = editor.config.filebrowserBrowseUrl; } if ( url ) { element.onClick = browseServer; element.filebrowser.url = url; element.hidden = false; } } else if ( element.filebrowser.action == 'QuickUpload' && element[ 'for' ] ) { url = element.filebrowser.url; if ( url === undefined ) { url = editor.config[ 'filebrowser' + ucFirst( dialogName ) + 'UploadUrl' ]; if ( url === undefined ) url = editor.config.filebrowserUploadUrl; } if ( url ) { var onClick = element.onClick; element.onClick = function( evt ) { // "element" here means the definition object, so we need to find the correct // button to scope the event call var sender = evt.sender; if ( onClick && onClick.call( sender, evt ) === false ) return false; return uploadFile.call( sender, evt ); }; copyright = ??? element.filebrowser.url = url; element.hidden = false; setupFileElement( editor, definition.getContents( element[ 'for' ][ 0 ] ).get( element[ 'for' ][ 1 ] ), element.filebrowser, copyright); } } } }
Someone who can help me?