diff -r fbe8a276ac78 -r 467e24fbc60e ckeditor/plugins/crossreference/plugin.js --- a/ckeditor/plugins/crossreference/plugin.js Thu Dec 15 18:17:46 2016 +0300 +++ b/ckeditor/plugins/crossreference/plugin.js Sat Dec 17 03:14:48 2016 +0300 @@ -1,7 +1,7 @@ CKEDITOR.plugins.add('crossreference', { lang : [ 'en', 'ru' ], requires : 'dialog,notification', - icons : 'crossreference', + icons : 'crossreference,anchor,link,update', hidpi : true, init : function(editor) { @@ -428,6 +428,7 @@ text = text.replace(/\$\{levelShift\}/g, shift); } + text = text.replace(/\s+/g, ' '); text = text.trim(); return text;