Google help on software/programming And Windows Tricks: June 2015

helponsoftware

Friday 5 June 2015

Add Extra Button in CK Editor

editor.addCommand("mySimpleCommand", { // create named command
    exec: function(edt) {
        CKEDITOR.instances.ckeditor.setData("yes i am working");
      
    }
});

editor.ui.addButton('SuperButton', { // add new button and bind our command
    label: "Spine",
    command: 'mySimpleCommand',
    toolbar: 'insert',
    icon: 'https://avatars1.githubusercontent.com/u/5500999?v=2&s=16'
});

           editor.on( 'change', function( evt ) {
    // getData() returns CKEditor's HTML content.
    console.log( 'Total bytes: ' + evt.editor.getData());
});

Exclude any field from select query


CREATE TEMPORARY TABLE IF NOT EXISTS table2 AS (SELECT * FROM table1);

ALTER TABLE table2 DROP field_name;
SELECT * FROM table2;
DROP TABLE table2;