equal
deleted
inserted
replaced
1 CKEDITOR.plugins.add('crossreference', { |
1 CKEDITOR.plugins.add('crossreference', { |
2 lang : [ 'en', 'ru' ], |
2 lang : [ 'en', 'ru' ], |
3 requires : 'dialog,notification', |
3 requires : 'dialog,notification', |
4 icons : 'crossreference', |
4 icons : 'crossreference,anchor,link,update', |
5 hidpi : true, |
5 hidpi : true, |
6 init : function(editor) { |
6 init : function(editor) { |
7 |
7 |
8 // config |
8 // config |
9 |
9 |
426 shift += ' '; |
426 shift += ' '; |
427 |
427 |
428 text = text.replace(/\$\{levelShift\}/g, shift); |
428 text = text.replace(/\$\{levelShift\}/g, shift); |
429 } |
429 } |
430 |
430 |
|
431 text = text.replace(/\s+/g, ' '); |
431 text = text.trim(); |
432 text = text.trim(); |
432 |
433 |
433 return text; |
434 return text; |
434 } |
435 } |
435 |
436 |