%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 188.40.95.74 / Your IP : 216.73.216.10 Web Server : Apache System : Linux cp01.striminghost.net 3.10.0-1160.119.1.el7.tuxcare.els13.x86_64 #1 SMP Fri Nov 22 06:29:45 UTC 2024 x86_64 User : vlasotin ( 1054) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/vlasotin/public_html/mojadmin/resources/tinymce/plugins/nonbreaking/ |
Upload File : |
/** * plugin.js * * Copyright, Moxiecode Systems AB * Released under LGPL License. * * License: http://www.tinymce.com/license * Contributing: http://www.tinymce.com/contributing */ /*global tinymce:true */ tinymce.PluginManager.add('nonbreaking', function(editor) { var setting = editor.getParam('nonbreaking_force_tab'); editor.addCommand('mceNonBreaking', function() { editor.insertContent( (editor.plugins.visualchars && editor.plugins.visualchars.state) ? '<span class="mce-nbsp"> </span>' : ' ' ); editor.dom.setAttrib(editor.dom.select('span.mce-nbsp'), 'data-mce-bogus', '1'); }); editor.addButton('nonbreaking', { title: 'Nonbreaking space', cmd: 'mceNonBreaking' }); editor.addMenuItem('nonbreaking', { text: 'Nonbreaking space', cmd: 'mceNonBreaking', context: 'insert' }); if (setting) { var spaces = +setting > 1 ? +setting : 3; // defaults to 3 spaces if setting is true (or 1) editor.on('keydown', function(e) { if (e.keyCode == 9) { if (e.shiftKey) { return; } e.preventDefault(); for (var i = 0; i < spaces; i++) { editor.execCommand('mceNonBreaking'); } } }); } });