X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fplugins%2Fscayt%2Fplugin.js;h=ec64fed77b1e69180603086996e12696b4d50c14;hp=8486ad9e36aafb84a2b942663e6699bc2bb1ee3c;hb=c9fdde67e6384bd5a66adc2b3bba5c4ce9db56c7;hpb=9873d66421922c7aef8be0f5d2ab51e547b19e66 diff --git a/_source/plugins/scayt/plugin.js b/_source/plugins/scayt/plugin.js index 8486ad9..ec64fed 100644 --- a/_source/plugins/scayt/plugin.js +++ b/_source/plugins/scayt/plugin.js @@ -62,7 +62,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license oParams.onBeforeChange = function() { if ( plugin.getScayt( editor ) && !editor.checkDirty() ) - setTimeout( function(){ editor.resetDirty(); } ); + setTimeout( function(){ editor.resetDirty(); }, 0 ); }; var scayt_custom_params = window.scayt_custom_params; @@ -496,13 +496,8 @@ CKEDITOR.plugins.scayt = items_order_str += 'scayt_' + items_order[ pos ] + ( items_order.length != parseInt( pos, 10 ) + 1 ? ',' : '' ); } - // Register scayt rbc menu group. - if ( editor.config.scayt_contextMenuOntop ) - // Put it on top of all context menu items - editor.config.menu_groups = items_order_str + ',' + editor.config.menu_groups; - else - // Put it down - editor.config.menu_groups = editor.config.menu_groups + ',' +items_order_str; + // Put it on top of all context menu items (#5717) + editor.config.menu_groups = items_order_str + ',' + editor.config.menu_groups; }, init : function( editor ) @@ -931,15 +926,6 @@ CKEDITOR.plugins.scayt = */ /** - * Makes it possible to place the SCAYT context menu items above others. - * @name CKEDITOR.config.scayt_contextMenuOntop - * @type Boolean - * @default false - * @example - * config.scayt_contextMenuOntop = true; - */ - -/** * Define order of placing of SCAYT context menu items by groups. * It must be a string with one or more of the following * words separated by a pipe ("|"):