PageSourceSearch

https://tidskriftenrespons.se/wp-content/themes/respons/js/custom-toolbar.js?ver=7.1.2

js tidskriftenrespons.se collected 2026-10-02 05:13:59 UTC 1,568 bytes, 52 lines download raw bytes

1(function(wp) {
2    // Button for Small Caps
3    var ButtonSmallCaps = function(props) {
4        return wp.element.createElement(
5            wp.editor.RichTextToolbarButton, {
6                icon: 'editor-bold',
7                title: 'Kapitäler',
8                onClick: function() {
9                    props.onChange(wp.richText.toggleFormat(
10                        props.value,
11                        { type: 'my-custom-format/small-caps' }
12                    ));
13                },
14            }
15        );
16    };
17
18    wp.richText.registerFormatType(
19        'my-custom-format/small-caps', {
20            title: 'Kapitäler',
21            tagName: 'strong',
22            className: 'small-caps',
23            edit: ButtonSmallCaps,
24        }
25    );
26
27    // Button for Preamble
28//     var ButtonPreamble = function(props) {
29//         return wp.element.createElement(
30//             wp.editor.RichTextToolbarButton, {
31//                 icon: 'editor-paragraph',
32//                 title: 'Ingress',
33//                 onClick: function() {
34//                     props.onChange(wp.richText.toggleFormat(
35//                         props.value,
36//                         { type: 'my-custom-format/preamble' }
37//                     ));
38//                 },
39//             }
40//         );
41//     };
42// 
43//     wp.richText.registerFormatType(
44//         'my-custom-format/preamble', {
45//             title: 'Ingress',
46//             tagName: 'p',
47//             className: 'preamble',
48//             edit: ButtonPreamble,
49//         }
50//     );
51
52})(window.wp);

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.