Ek:Wordpress'in yazı yazdığımız yerdeki(wysiwyg editördeki kısayol tuşları için) engelleme.
mceInit.setup = function( ed ){
ed.on('init', function () {
// Note these lists may not be complete & that other tinymce plugins can add their own shortcuts anyway.
var ctrls = [ '1', '2', '3', '4', '5', '6', '7', '8', '9', 's', 'k', 'Alt+F', 'Ctrl+R', 'Ctrl+L', 'Ctrl+R', 'P' ];
var modKeys = ['p', 'c', 'j', 'u', 'o', 'n', 's', 'm', 'z', 't', 'h', 'o', 'x', 'a', 'w', '8', '9' ];
// Overwrite shortcuts with no-op function. Key sequences will still be captured.
for (var i = 0; i < ctrls.length; i++ ) {
//this.addShortcut('ctrl+' + ctrls[i], '', function () {}); //use if tinyMCE <=4.1.7
this.addShortcut('Meta+' + ctrls[i], '', function () {});
}
for (var i = 0; i < modKeys.length; i++ ) {
//this.addShortcut('alt+shift+' + modKeys[i], '', function () {});//use if tinyMCE <=4.1.7
this.addShortcut('access+' + modKeys[i], '', function () {});
}
});
};
// return
return mceInit;