PageSourceSearch

https://xn--80aapampemcchfmo7a3c9ehj.xn--p1ai/local/modules/dalee.typograf/f/js/dalee_typograf.js

js xn--80aapampemcchfmo7a3c9ehj.xn--p1ai collected 2026-10-02 03:24:40 UTC 952 bytes, 25 lines download raw bytes

1BX.addCustomEvent('OnEditorInitedBefore', function (editor) {
2
3  // Описание кнопки "Типографа", добавляемой в визуальный редактор
4  editor.AddButton({
5    name: 'Типограф', // Название кнопки
6    id: 'dalee-typograf-img',
7    src: '/local/modules/dalee.typograf/f/images/typograf_button.png', // Путь до иконки кнопки
8    iconClassName: 'bxhtmled-button-dalee-typograf-img',
9    toolbarSort: 10,
10
11    // Событие по нажатию на кнопку
12    handler: function () {
13      const tp = new Typograf({locale: ['ru', 'en-US']});
14      tp.enableRule('common/nbsp/replaceNbsp');
15
16      const content = editor.GetContent();
17      const transformed = tp.execute(content);
18
19      editor.SetContent(transformed);
20      editor.ReInitIframe();
21      $(editor.document).find('head').append($('<style>body { font-size: 18px; }</style>'))
22    }
23  });
24
25});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.