Jump to content

chintsu

Neophyte
  • Posts

    1
  • Joined

  • Last visited

Everything posted by chintsu

  1. Всем привет! Как я понял в версии 2.x toolbar был с 4 кнопками (view source, copy, print, help (смотрите статью)), но в 3 версии от этого отказались (SyntaxHighlighter not showing toolbar). Кнопки для тулбара задаются в shCore.js переменной toolbar.items: ... items : { // Ordered lis of items in the toolbar. Can't expect `for (var n in items)` to be consistent. list: ['expandSource', 'help'], expandSource: { getHtml: function(highlighter) { if (highlighter.getParam('collapse') != true) return ''; var title = highlighter.getParam('title'); return sh.toolbar.getButtonHtml(highlighter, 'expandSource', title ? title : sh.config.strings.expandSource); }, execute: function(highlighter) { var div = getHighlighterDivById(highlighter.id); removeClass(div, 'collapsed'); } }, /** Command to display the about dialog window. */ help: { execute: function(highlighter) { var wnd = popup('', '_blank', 500, 250, 'scrollbars=0'), doc = wnd.document ; doc.write(sh.config.strings.aboutDialog); doc.close(); wnd.focus(); } } } }, ... Нужно копать в этом направлении..
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy