How to remove 'ok' button from custom upload form
So, i created my own custom tool bar and added a button to upload image from database and not from server. On my upload form i had 'upload' button, 'ok' button and a 'cancel' button. The 'ok' button was kinda useless there, so i thought of getting rid of it. This is what you should do to remove it.

Go to config .js and enter the following line in your code.

>     CKEDITOR.editorConfig = function (config) {
    // Define changes to default configuration here. For example:
    // config.language = 'fr';
    // config.uiColor = '#AADC6E';
    config.toolbar = 'Full';
    config.extraPlugins = 'testimage';
    config.toolbar_Full =
    [
      	{ name: 'insert', items: ['testimage', 'Flash', 'Table', 'HorizontalRule',    'Smiley', 'SpecialChar', 'PageBreak', 'Iframe'] },

    ];
      config.extraPlugins = 'testimage';
      CKEDITOR.on('dialogDefinition', function (ev) {

         // Take the dialog name and its definition from the event data.
         
        var dialogName = ev.data.name;
        var dialogDefinition = ev.data.definition;

        // if you have any plugin of your own and need to remove ok button 

        if (dialogName == 'testimage') {
            // remove ok button 
            dialogDefinition.onShow = function () {
                document.getElementById(this.getButton('ok').domId).style.display = 'none';
            };
        }
    });
    };

There you go !! No more 'ok' button in your upload form.
How to remove 'ok' button from custom upload form
===

So, i created my own custom tool bar and added a button to upload image from database and not from server. On my upload form i had 'upload' button, 'ok' button and a 'cancel' button. The 'ok' button was kinda useless there, so i thought of getting rid of it. This is what you should do to remove it.

Go to config .js and enter the following line in your code.

>     CKEDITOR.editorConfig = function (config) {
    // Define changes to default configuration here. For example:
    // config.language = 'fr';
    // config.uiColor = '#AADC6E';
    config.toolbar = 'Full';
    config.extraPlugins = 'testimage';
    config.toolbar_Full =
    [
      	{ name: 'insert', items: ['testimage', 'Flash', 'Table', 'HorizontalRule',    'Smiley', 'SpecialChar', 'PageBreak', 'Iframe'] },

    ];
      config.extraPlugins = 'testimage';
      CKEDITOR.on('dialogDefinition', function (ev) {

         // Take the dialog name and its definition from the event data.
         
        var dialogName = ev.data.name;
        var dialogDefinition = ev.data.definition;

        // if you have any plugin of your own and need to remove ok button 

        if (dialogName == 'testimage') {
            // remove ok button 
            dialogDefinition.onShow = function () {
                document.getElementById(this.getButton('ok').domId).style.display = 'none';
            };
        }
    });
    };

There you go !! No more 'ok' button in your upload form.