oParams.onBeforeChange = function()\r
{\r
if ( plugin.getScayt( editor ) && !editor.checkDirty() )\r
- setTimeout( function(){ editor.resetDirty(); } );\r
+ setTimeout( function(){ editor.resetDirty(); }, 0 );\r
};\r
\r
var scayt_custom_params = window.scayt_custom_params;\r
items_order_str += 'scayt_' + items_order[ pos ] + ( items_order.length != parseInt( pos, 10 ) + 1 ? ',' : '' );\r
}\r
\r
- // Register scayt rbc menu group.\r
- if ( editor.config.scayt_contextMenuOntop )\r
- // Put it on top of all context menu items\r
- editor.config.menu_groups = items_order_str + ',' + editor.config.menu_groups;\r
- else\r
- // Put it down\r
- editor.config.menu_groups = editor.config.menu_groups + ',' +items_order_str;\r
+ // Put it on top of all context menu items (#5717)\r
+ editor.config.menu_groups = items_order_str + ',' + editor.config.menu_groups;\r
},\r
\r
init : function( editor )\r
*/\r
\r
/**\r
- * Makes it possible to place the SCAYT context menu items above others.\r
- * @name CKEDITOR.config.scayt_contextMenuOntop\r
- * @type Boolean\r
- * @default false\r
- * @example\r
- * config.scayt_contextMenuOntop = true;\r
- */\r
-\r
-/**\r
* Define order of placing of SCAYT context menu items by groups.\r
* It must be a string with one or more of the following\r
* words separated by a pipe ("|"):\r