Toolbar fixture for edumed
[redakcja.git] / apps / toolbar / fixtures / initial_toolbar.yaml
1 [
2     {
3         "pk": 14, 
4         "model": "toolbar.buttongroup", 
5         "fields": {
6             "position": 0, 
7             "name": "Akapity", 
8             "slug": "akapity"
9         }
10     }, 
11     {
12         "pk": 2, 
13         "model": "toolbar.buttongroup", 
14         "fields": {
15             "position": 0, 
16             "name": "Autokorekta", 
17             "slug": "autokorekta"
18         }
19     }, 
20     {
21         "pk": 28, 
22         "model": "toolbar.buttongroup", 
23         "fields": {
24             "position": 0, 
25             "name": "Autotagowanie", 
26             "slug": "autotagowanie"
27         }
28     }, 
29     {
30         "pk": 13, 
31         "model": "toolbar.buttongroup", 
32         "fields": {
33             "position": 0, 
34             "name": "Elementy pocz\u0105tkowe", 
35             "slug": "elementy-poczatkowe"
36         }
37     }, 
38     {
39         "pk": 30, 
40         "model": "toolbar.buttongroup", 
41         "fields": {
42             "position": 0, 
43             "name": "Listy", 
44             "slug": "listy"
45         }
46     }, 
47     {
48         "pk": 11, 
49         "model": "toolbar.buttongroup", 
50         "fields": {
51             "position": 0, 
52             "name": "Mastery", 
53             "slug": "mastery"
54         }
55     }, 
56     {
57         "pk": 1, 
58         "model": "toolbar.buttongroup", 
59         "fields": {
60             "position": 0, 
61             "name": "Nag\u0142\u00f3wki", 
62             "slug": "naglowki"
63         }
64     }, 
65     {
66         "pk": 15, 
67         "model": "toolbar.buttongroup", 
68         "fields": {
69             "position": 0, 
70             "name": "Style znakowe", 
71             "slug": "style-znakowe"
72         }
73     }, 
74     {
75         "pk": 29, 
76         "model": "toolbar.buttongroup", 
77         "fields": {
78             "position": 0, 
79             "name": "Uwaga", 
80             "slug": "uwaga"
81         }
82     }, 
83     {
84         "pk": 39, 
85         "model": "toolbar.button", 
86         "fields": {
87             "group": [
88                 14
89             ], 
90             "scriptlet": "insert_tag", 
91             "accesskey": "a", 
92             "tooltip": "wstawia akapit", 
93             "label": "akapit", 
94             "link": "", 
95             "params": "{\"padding_top\": 1, \"padding_bottom\": 3, \"tag\": \"akap\"}", 
96             "slug": "akapit"
97         }
98     }, 
99     {
100         "pk": 97, 
101         "model": "toolbar.button", 
102         "fields": {
103             "group": [
104                 28
105             ], 
106             "scriptlet": "autotag", 
107             "accesskey": "", 
108             "tooltip": "autotagowanie akapit\u00f3w", 
109             "label": "akapity", 
110             "link": "", 
111             "params": "{\"tag\": \"akap\"}", 
112             "slug": "akapity"
113         }
114     }, 
115     {
116         "pk": 109, 
117         "model": "toolbar.button", 
118         "fields": {
119             "group": [
120                 14
121             ], 
122             "scriptlet": "insert_tag", 
123             "accesskey": "z", 
124             "tooltip": "", 
125             "label": "aktywno\u015b\u0107", 
126             "link": "", 
127             "params": "{\"tag\": \"aktywnosc\"}", 
128             "slug": "aktywnosc"
129         }
130     }, 
131     {
132         "pk": 32, 
133         "model": "toolbar.button", 
134         "fields": {
135             "group": [
136                 13
137             ], 
138             "scriptlet": "insert_tag", 
139             "accesskey": "", 
140             "tooltip": "", 
141             "label": "autor", 
142             "link": "", 
143             "params": "{\"padding_top\": 1, \"padding_bottom\": 2, \"tag\": \"autor_utworu\"}", 
144             "slug": "autor"
145         }
146     }, 
147     {
148         "pk": 4, 
149         "model": "toolbar.button", 
150         "fields": {
151             "group": [
152                 2
153             ], 
154             "scriptlet": "macro", 
155             "accesskey": "", 
156             "tooltip": "Wykonuj\u0119 podstawow\u0105 korekt\u0119 tekstu.", 
157             "label": "Podstawowa", 
158             "link": "", 
159             "params": "[[\"fulltextregexp\", {\"exprs\": [[\"\\ufeff\", \"\"], [\"$[\\\\s]*\\\\d+[\\\\s]*^\", \"\"], [\"-\\\\s*^\", \"\"], [\"\\\\,\\\\.\\\\.|\\\\.\\\\,\\\\.|\\\\.\\\\.\\\\,\", \"...\"], [\"<(/?)P([aert])\", \"<$1p$2\"], [\"[\\u2014\\u2013\\u2010-]{2,}|[\\u2014\\u2013\\u2010]+\", \"---\"], [\"(\\\\s)-([^-])\", \"$1---$2\"], [\"([^-])-(\\\\s)\", \"$1---$2\"], [\"(\\\\d)-+(\\\\d)\", \"$1--$2\"], [\"---(\\\\S)\", \"--- $1\"], [\"(\\\\S)---\", \"$1 ---\"], [\"<akap_dialog>\\\\s*-+\\\\s*\", \"<akap_dialog>--- \"]]}], [\"lineregexp\", {\"exprs\": [[\"^\\\\s+|\\\\s+$\", \"\"], [\"\\\\s+\", \" \"], [\"(,,)\\\\s+\", \"$1\"], [\"\\\\s+(\\\")\", \"$1\"], [\"([^\\\\.])(\\\\s*)</p\", \"$1.$2</p\"], [\"([\\\\.:;!\\\\?])([^\\\\s\\\\\\\\])\", \"$1 $2\"], [\"([^\\\\s])\\\\s+([\\\\.:;!\\\\?])\", \"$1$2\"], [\"\\\\s+,([^,])\", \",$1\"], [\"([^,]),([^\\\\s\\\\\\\\,])\", \"$1, $2\"]]}]]", 
160             "slug": "basic_correction"
161         }
162     }, 
163     {
164         "pk": 89, 
165         "model": "toolbar.button", 
166         "fields": {
167             "group": [
168                 2
169             ], 
170             "scriptlet": "lineregexp", 
171             "accesskey": "", 
172             "tooltip": "zamiana \" na ,, oraz  \u00aba\u00bb na ,,a\"", 
173             "label": "zamiana cudzys\u0142ow\u00f3w 1", 
174             "link": "", 
175             "params": "{\"exprs\": [[\"\\u00ab|\\u201e\", \",,\"], [\"\\u00bb\", \"\\\"\"], [\"([^=])\\\"([\\u0104\\u0118\\u00d3\\u0141\\u017b\\u0179\\u0106\\u0143\\u0105\\u017c\\u017a\\u015b\\u0144\\u00f3\\u0142\\u0107\\\\w])\", \"$1,,$2\"], [\"^\\\"([\\u0104\\u0118\\u00d3\\u0141\\u017b\\u0179\\u0106\\u0143\\u0105\\u017c\\u017a\\u015b\\u0144\\u00f3\\u0142\\u0107\\\\w])\", \",,$1\"], [\"(,,)\\\\s+|\\\\s+(\\\")\", \"$1\"]]}", 
176             "slug": "cudzyslow-francuski"
177         }
178     }, 
179     {
180         "pk": 77, 
181         "model": "toolbar.button", 
182         "fields": {
183             "group": [
184                 2
185             ], 
186             "scriptlet": "lineregexp", 
187             "accesskey": "", 
188             "tooltip": "zamienia \" na ,, oraz \u00bba\u00ab na ,,a\"", 
189             "label": "zamiana cudzys\u0142ow\u00f3w 2", 
190             "link": "", 
191             "params": "{\"exprs\": [[\"\\u00bb|\\u201e\", \",,\"], [\"\\u00ab\", \"\\\"\"], [\"([^=])\\\"([\\u0104\\u0118\\u00d3\\u0141\\u017b\\u0179\\u0106\\u0143\\u0105\\u017c\\u017a\\u015b\\u0144\\u00f3\\u0142\\u0107\\\\w])\", \"$1,,$2\"], [\"^\\\"([\\u0104\\u0118\\u00d3\\u0141\\u017b\\u0179\\u0106\\u0143\\u0105\\u017c\\u017a\\u015b\\u0144\\u00f3\\u0142\\u0107\\\\w])\", \",,$1\"], [\"(,,)\\\\s+|\\\\s+(\\\")\", \"$1\"]]}", 
192             "slug": "cudzyslow-niemiecki"
193         }
194     }, 
195     {
196         "pk": 118, 
197         "model": "toolbar.button", 
198         "fields": {
199             "group": [
200                 14
201             ], 
202             "scriptlet": "insert_tag", 
203             "accesskey": "", 
204             "tooltip": "", 
205             "label": "\u0107wiczenie", 
206             "link": "", 
207             "params": "{\"tag\": \"cwiczenie\"}", 
208             "slug": "cwiczenie"
209         }
210     }, 
211     {
212         "pk": 122, 
213         "model": "toolbar.button", 
214         "fields": {
215             "group": [
216                 14
217             ], 
218             "scriptlet": "insert_tag", 
219             "accesskey": "", 
220             "tooltip": "", 
221             "label": "\u0107wiczenie typ", 
222             "link": "", 
223             "params": "{\"tag\": \"cwiczenie\", \"attrs\": {\"typ\": \"\"}}", 
224             "slug": "cwiczenie-typ"
225         }
226     }, 
227     {
228         "pk": 115, 
229         "model": "toolbar.button", 
230         "fields": {
231             "group": [
232                 14
233             ], 
234             "scriptlet": "insert_tag", 
235             "accesskey": "", 
236             "tooltip": "", 
237             "label": "czas", 
238             "link": "", 
239             "params": "{\"tag\": \"czas\"}", 
240             "slug": "czas"
241         }
242     }, 
243     {
244         "pk": 10, 
245         "model": "toolbar.button", 
246         "fields": {
247             "group": [
248                 1
249             ], 
250             "scriptlet": "insert_tag", 
251             "accesskey": "", 
252             "tooltip": "", 
253             "label": "cz\u0119\u015b\u0107/ksi\u0119ga", 
254             "link": "", 
255             "params": "{\"padding_top\": 1, \"padding_bottom\": 4, \"tag\": \"naglowek_czesc\"}", 
256             "slug": "czesc"
257         }
258     }, 
259     {
260         "pk": 126, 
261         "model": "toolbar.button", 
262         "fields": {
263             "group": [
264                 14
265             ], 
266             "scriptlet": "insert_tag", 
267             "accesskey": "", 
268             "tooltip": "", 
269             "label": "definiendum", 
270             "link": "", 
271             "params": "{\"tag\": \"definiendum\"}", 
272             "slug": "definiendum"
273         }
274     }, 
275     {
276         "pk": 125, 
277         "model": "toolbar.button", 
278         "fields": {
279             "group": [
280                 14
281             ], 
282             "scriptlet": "insert_tag", 
283             "accesskey": "", 
284             "tooltip": "", 
285             "label": "definiens", 
286             "link": "", 
287             "params": "{\"tag\": \"definiens\"}", 
288             "slug": "definiens"
289         }
290     }, 
291     {
292         "pk": 114, 
293         "model": "toolbar.button", 
294         "fields": {
295             "group": [
296                 14
297             ], 
298             "scriptlet": "insert_tag", 
299             "accesskey": "", 
300             "tooltip": "", 
301             "label": "forma", 
302             "link": "", 
303             "params": "{\"tag\": \"forma\"}", 
304             "slug": "forma"
305         }
306     }, 
307     {
308         "pk": 87, 
309         "model": "toolbar.button", 
310         "fields": {
311             "group": [], 
312             "scriptlet": "insert_tag", 
313             "accesskey": "", 
314             "tooltip": "", 
315             "label": "Wydrukuj", 
316             "link": "print/html", 
317             "params": "[]", 
318             "slug": "htmleditor-print"
319         }
320     }, 
321     {
322         "pk": 124, 
323         "model": "toolbar.button", 
324         "fields": {
325             "group": [
326                 14
327             ], 
328             "scriptlet": "insert_tag", 
329             "accesskey": "", 
330             "tooltip": "", 
331             "label": "link slug", 
332             "link": "", 
333             "params": "{\"tag\": \"link\", \"attrs\": {\"slug\": \"\"}}", 
334             "slug": "link"
335         }
336     }, 
337     {
338         "pk": 127, 
339         "model": "toolbar.button", 
340         "fields": {
341             "group": [
342                 14
343             ], 
344             "scriptlet": "insert_tag", 
345             "accesskey": "", 
346             "tooltip": "", 
347             "label": "link url", 
348             "link": "", 
349             "params": "{\"tag\": \"link\", \"attrs\": {\"url\": \"\"}}", 
350             "slug": "link-url"
351         }
352     }, 
353     {
354         "pk": 117, 
355         "model": "toolbar.button", 
356         "fields": {
357             "group": [
358                 30
359             ], 
360             "scriptlet": "insert_tag", 
361             "accesskey": "w", 
362             "tooltip": "", 
363             "label": "lista", 
364             "link": "", 
365             "params": "{\"tag\": \"lista\", \"attrs\": {\"typ\": \"\"}}", 
366             "slug": "lista"
367         }
368     }, 
369     {
370         "pk": 128, 
371         "model": "toolbar.button", 
372         "fields": {
373             "group": [
374                 30
375             ], 
376             "scriptlet": "insert_tag", 
377             "accesskey": "", 
378             "tooltip": "", 
379             "label": "lista alfa", 
380             "link": "", 
381             "params": "{\"tag\": \"lista\", \"attrs\": {\"typ\": \"alfa\"}}", 
382             "slug": "lista-alfa"
383         }
384     }, 
385     {
386         "pk": 121, 
387         "model": "toolbar.button", 
388         "fields": {
389             "group": [
390                 30
391             ], 
392             "scriptlet": "insert_tag", 
393             "accesskey": "", 
394             "tooltip": "", 
395             "label": "lista czytelnia", 
396             "link": "", 
397             "params": "{\"tag\": \"lista\", \"attrs\": {\"typ\": \"czytelnia\"}}", 
398             "slug": "lista-czytelnia"
399         }
400     }, 
401     {
402         "pk": 116, 
403         "model": "toolbar.button", 
404         "fields": {
405             "group": [
406                 30
407             ], 
408             "scriptlet": "insert_tag", 
409             "accesskey": "w", 
410             "tooltip": "", 
411             "label": "lista num", 
412             "link": "", 
413             "params": "{\"tag\": \"lista\", \"attrs\": {\"typ\": \"num\"}}", 
414             "slug": "lista-num"
415         }
416     }, 
417     {
418         "pk": 119, 
419         "model": "toolbar.button", 
420         "fields": {
421             "group": [
422                 30
423             ], 
424             "scriptlet": "insert_tag", 
425             "accesskey": "q", 
426             "tooltip": "", 
427             "label": "lista punkt", 
428             "link": "", 
429             "params": "{\"tag\": \"lista\", \"attrs\": {\"typ\": \"punkt\"}}", 
430             "slug": "lista-punkt"
431         }
432     }, 
433     {
434         "pk": 120, 
435         "model": "toolbar.button", 
436         "fields": {
437             "group": [
438                 30
439             ], 
440             "scriptlet": "insert_tag", 
441             "accesskey": "", 
442             "tooltip": "", 
443             "label": "lista s\u0142owniczek", 
444             "link": "", 
445             "params": "{\"tag\": \"lista\", \"attrs\": {\"typ\": \"slowniczek\"}}", 
446             "slug": "lista-slowniczek"
447         }
448     }, 
449     {
450         "pk": 33, 
451         "model": "toolbar.button", 
452         "fields": {
453             "group": [
454                 13
455             ], 
456             "scriptlet": "insert_tag", 
457             "accesskey": "", 
458             "tooltip": "", 
459             "label": "nazwa utworu", 
460             "link": "", 
461             "params": "{\"padding_top\": 1, \"padding_bottom\": 2, \"tag\": \"nazwa_utworu\"}", 
462             "slug": "nazwa-utworu"
463         }
464     }, 
465     {
466         "pk": 35, 
467         "model": "toolbar.button", 
468         "fields": {
469             "group": [
470                 13
471             ], 
472             "scriptlet": "insert_tag", 
473             "accesskey": "", 
474             "tooltip": "", 
475             "label": "nota", 
476             "link": "", 
477             "params": "{\"tag\": \"nota\"}", 
478             "slug": "nota"
479         }
480     }, 
481     {
482         "pk": 111, 
483         "model": "toolbar.button", 
484         "fields": {
485             "group": [
486                 14
487             ], 
488             "scriptlet": "autotag", 
489             "accesskey": "", 
490             "tooltip": "", 
491             "label": "opis", 
492             "link": "", 
493             "params": "{\"tag\": \"opis\"}", 
494             "slug": "opis"
495         }
496     }, 
497     {
498         "pk": 12, 
499         "model": "toolbar.button", 
500         "fields": {
501             "group": [
502                 1
503             ], 
504             "scriptlet": "insert_tag", 
505             "accesskey": "", 
506             "tooltip": "", 
507             "label": "podrozdzia\u0142", 
508             "link": "", 
509             "params": "{\"tag\": \"naglowek_podrozdzial\"}", 
510             "slug": "podrozdzial"
511         }
512     }, 
513     {
514         "pk": 34, 
515         "model": "toolbar.button", 
516         "fields": {
517             "group": [
518                 1
519             ], 
520             "scriptlet": "insert_tag", 
521             "accesskey": "", 
522             "tooltip": "", 
523             "label": "podtytu\u0142", 
524             "link": "", 
525             "params": "{\"tag\": \"podtytul\"}", 
526             "slug": "podtytul"
527         }
528     }, 
529     {
530         "pk": 113, 
531         "model": "toolbar.button", 
532         "fields": {
533             "group": [
534                 14
535             ], 
536             "scriptlet": "insert_tag", 
537             "accesskey": "", 
538             "tooltip": "", 
539             "label": "pomoce", 
540             "link": "", 
541             "params": "{\"tag\": \"pomoce\"}", 
542             "slug": "pomoce"
543         }
544     }, 
545     {
546         "pk": 19, 
547         "model": "toolbar.button", 
548         "fields": {
549             "group": [
550                 11
551             ], 
552             "scriptlet": "insert_tag", 
553             "accesskey": "", 
554             "tooltip": "", 
555             "label": "powie\u015b\u0107", 
556             "link": "", 
557             "params": "{\"padding_top\": 1, \"padding_bottom\": 4, \"tag\": \"powiesc\"}", 
558             "slug": "powiesc"
559         }
560     }, 
561     {
562         "pk": 86, 
563         "model": "toolbar.button", 
564         "fields": {
565             "group": [], 
566             "scriptlet": "insert_tag", 
567             "accesskey": "", 
568             "tooltip": "", 
569             "label": "Wydrukuj", 
570             "link": "print/xml", 
571             "params": "[]", 
572             "slug": "print-xml"
573         }
574     }, 
575     {
576         "pk": 108, 
577         "model": "toolbar.button", 
578         "fields": {
579             "group": [
580                 30
581             ], 
582             "scriptlet": "insert_tag", 
583             "accesskey": "s", 
584             "tooltip": "", 
585             "label": "punkt na li\u015bcie", 
586             "link": "", 
587             "params": "{\"tag\": \"punkt\"}", 
588             "slug": "punkt-na-liscie"
589         }
590     }, 
591     {
592         "pk": 123, 
593         "model": "toolbar.button", 
594         "fields": {
595             "group": [
596                 30
597             ], 
598             "scriptlet": "insert_tag", 
599             "accesskey": "", 
600             "tooltip": "", 
601             "label": "punkt warto\u015b\u0107", 
602             "link": "", 
603             "params": "{\"tag\": \"punkt\", \"attrs\": {\"wartosc\": \"\"}}", 
604             "slug": "punkt-wartosc"
605         }
606     }, 
607     {
608         "pk": 110, 
609         "model": "toolbar.button", 
610         "fields": {
611             "group": [
612                 28
613             ], 
614             "scriptlet": "autotag", 
615             "accesskey": "", 
616             "tooltip": "", 
617             "label": "punkty na li\u015bcie", 
618             "link": "", 
619             "params": "{\"tag\": \"punkt\"}", 
620             "slug": "punkty-na-liscie"
621         }
622     }, 
623     {
624         "pk": 11, 
625         "model": "toolbar.button", 
626         "fields": {
627             "group": [
628                 1
629             ], 
630             "scriptlet": "insert_tag", 
631             "accesskey": "", 
632             "tooltip": "", 
633             "label": "rozdzia\u0142", 
634             "link": "", 
635             "params": "{\"padding_top\": 1, \"padding_bottom\": 4, \"tag\": \"naglowek_rozdzial\"}", 
636             "slug": "rozdzial"
637         }
638     }, 
639     {
640         "pk": 46, 
641         "model": "toolbar.button", 
642         "fields": {
643             "group": [
644                 15
645             ], 
646             "scriptlet": "insert_tag", 
647             "accesskey": "e", 
648             "tooltip": "frazy w j\u0119zykach innych ni\u017c polski/definiendum w przypisie", 
649             "label": "s\u0142owo obce", 
650             "link": "", 
651             "params": "{\"tag\": \"slowo_obce\"}", 
652             "slug": "slowo-obce"
653         }
654     }, 
655     {
656         "pk": 105, 
657         "model": "toolbar.button", 
658         "fields": {
659             "group": [
660                 2
661             ], 
662             "scriptlet": "slugify", 
663             "accesskey": "", 
664             "tooltip": "slugifikacja", 
665             "label": "slug", 
666             "link": "", 
667             "params": "[]", 
668             "slug": "slug"
669         }
670     }, 
671     {
672         "pk": 13, 
673         "model": "toolbar.button", 
674         "fields": {
675             "group": [
676                 1
677             ], 
678             "scriptlet": "insert_tag", 
679             "accesskey": "", 
680             "tooltip": "", 
681             "label": "\u015br\u00f3dtytu\u0142", 
682             "link": "", 
683             "params": "{\"tag\": \"srodtytul\"}", 
684             "slug": "srodtytul"
685         }
686     }, 
687     {
688         "pk": 17, 
689         "model": "toolbar.button", 
690         "fields": {
691             "group": [
692                 11
693             ], 
694             "scriptlet": "insert_tag", 
695             "accesskey": "", 
696             "tooltip": "", 
697             "label": "tag g\u0142\u00f3wny", 
698             "link": "", 
699             "params": "{\"tag\": \"utwor\"}", 
700             "slug": "tag-glowny"
701         }
702     }, 
703     {
704         "pk": 76, 
705         "model": "toolbar.button", 
706         "fields": {
707             "group": [
708                 2
709             ], 
710             "scriptlet": "lowercase", 
711             "accesskey": "u", 
712             "tooltip": "Zamie\u0144 wielkie litery na ma\u0142e", 
713             "label": "A<sup>\u2193</sup>", 
714             "link": "", 
715             "params": "[]", 
716             "slug": "tolowercase"
717         }
718     }, 
719     {
720         "pk": 129, 
721         "model": "toolbar.button", 
722         "fields": {
723             "group": [
724                 28
725             ], 
726             "scriptlet": "autotag", 
727             "accesskey": "", 
728             "tooltip": "", 
729             "label": "typ kod", 
730             "link": "", 
731             "params": "{\"tag\": \"typ\", \"attrs\": {\"kod\": \"\"}}", 
732             "slug": "typ-kod"
733         }
734     }, 
735     {
736         "pk": 92, 
737         "model": "toolbar.button", 
738         "fields": {
739             "group": [
740                 15
741             ], 
742             "scriptlet": "insert_tag", 
743             "accesskey": "r", 
744             "tooltip": "", 
745             "label": "tytu\u0142 dzie\u0142a", 
746             "link": "", 
747             "params": "{\"tag\": \"tytul_dziela\"}", 
748             "slug": "tytul-dziela"
749         }
750     }, 
751     {
752         "pk": 45, 
753         "model": "toolbar.button", 
754         "fields": {
755             "group": [
756                 15
757             ], 
758             "scriptlet": "insert_tag", 
759             "accesskey": "", 
760             "tooltip": "tytu\u0142 dzie\u0142a w cytowanym tytule dzie\u0142a", 
761             "label": "tytu\u0142 dzie\u0142a typ 1", 
762             "link": "", 
763             "params": "{\"tag\": \"tytul_dziela\", \"attrs\": {\"typ\": \"1\"}}", 
764             "slug": "tytul-dziela-typ"
765         }
766     }, 
767     {
768         "pk": 51, 
769         "model": "toolbar.button", 
770         "fields": {
771             "group": [
772                 29
773             ], 
774             "scriptlet": "insert_tag", 
775             "accesskey": "", 
776             "tooltip": "uwagi redaktorsko-korektorskie ", 
777             "label": "uwaga", 
778             "link": "", 
779             "params": "{\"tag\": \"uwaga\"}", 
780             "slug": "uwaga"
781         }
782     }, 
783     {
784         "pk": 112, 
785         "model": "toolbar.button", 
786         "fields": {
787             "group": [
788                 14
789             ], 
790             "scriptlet": "insert_tag", 
791             "accesskey": "d", 
792             "tooltip": "", 
793             "label": "wskaz\u00f3wki", 
794             "link": "", 
795             "params": "{\"tag\": \"wskazowki\"}", 
796             "slug": "wskazowki"
797         }
798     }, 
799     {
800         "pk": 48, 
801         "model": "toolbar.button", 
802         "fields": {
803             "group": [
804                 15
805             ], 
806             "scriptlet": "insert_tag", 
807             "accesskey": "", 
808             "tooltip": "", 
809             "label": "www", 
810             "link": "", 
811             "params": "{\"tag\": \"www\"}", 
812             "slug": "www"
813         }
814     }, 
815     {
816         "pk": 44, 
817         "model": "toolbar.button", 
818         "fields": {
819             "group": [
820                 15
821             ], 
822             "scriptlet": "insert_tag", 
823             "accesskey": "f", 
824             "tooltip": "wyr\u00f3\u017cnienie autorskie", 
825             "label": "wyr\u00f3\u017cnienie", 
826             "link": "", 
827             "params": "{\"tag\": \"wyroznienie\"}", 
828             "slug": "wyroznienie"
829         }
830     }, 
831     {
832         "pk": "macro", 
833         "model": "toolbar.scriptlet", 
834         "fields": {
835             "code": "$(params).each(function() {\n    $.log(this[0], this[1]);\n    editor.callScriptlet(this[0], panel, this[1]);\n\n});"
836         }
837     }, 
838     {
839         "pk": "insert_tag", 
840         "model": "toolbar.scriptlet", 
841         "fields": {
842             "code": "var texteditor = panel.texteditor;\nvar text = texteditor.selection();\nvar start_tag = '<'+params.tag;\nfor (var attr in params.attrs) {\n    start_tag += ' '+attr+'=\"' + params.attrs[attr] + '\"';\n};\nstart_tag += '>';\nvar end_tag = '</'+params.tag+'>';\n\nif(text.length > 0) {\n// tokenize\nvar output = ''\nvar token = ''\nfor(var index=0; index < text.length; index++)\n{\n    if (text[index].match(/\\s/)) { // whitespace\n        token += text[index];\n    }\n    else { // character\n        output += token;\n        if(output == token) output += start_tag;\n        token = ''\n        output += text[index];\n    }\n}\n\nif( output[output.length-1] == '\\\\' ) {\n    output = output.substr(0, output.length-1) + end_tag + '\\\\';\n} else {\n    output += end_tag;\n}\noutput += token;\n}\nelse {\n output = start_tag + end_tag;\n}\n\ntexteditor.replaceSelection(output);\n\nif (text.length == 0) {\n    var pos = texteditor.cursorPosition();\n    texteditor.selectLines(pos.line, pos.character + params.tag.length + 2);\n}\n\npanel.fireEvent('contentChanged');"
843         }
844     }, 
845     {
846         "pk": "lineregexp", 
847         "model": "toolbar.scriptlet", 
848         "fields": {
849             "code": "editor.showPopup('generic-info', 'Przetwarzanie zaznaczonego tekstu...', '', -1);\n\nvar cm = panel.texteditor;\nvar exprs = $.map(params.exprs, function(expr) {\n\n    var opts = \"g\";\n\n    if(expr.length > 2)\n\n        opts = expr[2];\n\n    return {rx: new RegExp(expr[0], opts), repl: expr[1]};\n\n});\n\n\n\nvar partial = true;\n\nvar text = cm.selection();\n\n\n\nif(!text) {\n\n    var cpos = cm.cursorPosition();\n\n    cpos.line = cm.lineNumber(cpos.line)\n\n    cm.selectLines(cm.firstLine(), 0, cm.lastLine(), 0);\n\n    text = cm.selection();\n\n    partial = false;\n\n}\n\n\n\nvar changed = 0;\nvar lines = text.split('\\n');\nvar lines = $.map(lines, function(line) { \n    var old_line = line;\n    $(exprs).each(function() { \n        var expr = this;\n        line = line.replace(expr.rx, expr.repl);\n    });\n\n    if(old_line != line) changed += 1;\n    return line;\n});\n\nif(changed > 0) \n{\n    cm.replaceSelection( lines.join('\\n') );\n    panel.fireEvent('contentChanged');\n    editor.showPopup('generic-yes', 'Zmieniono ' + changed + ' linii.', 1500);\n    editor.advancePopupQueue();\n}\nelse {\n    editor.showPopup('generic-info',  'Brak zmian w tek\u015bcie', 1500);\n    editor.advancePopupQueue();\n}\n\nif(!partial)\n    cm.selectLines( cm.nthLine(cpos.line), cpos.character )"
850         }
851     }, 
852     {
853         "pk": "autotag", 
854         "model": "toolbar.scriptlet", 
855         "fields": {
856             "code": "-"
857         }
858     }, 
859     {
860         "pk": "fulltextregexp", 
861         "model": "toolbar.scriptlet", 
862         "fields": {
863             "code": "editor.showPopup('generic-info', 'Przetwarzanie zaznaczonego tekstu...', '', -1);\n$.log(editor, panel, params);\nvar cm = panel.texteditor;\nvar exprs = $.map(params.exprs, function(expr) {\n    var opts = \"mg\";\n    if(expr.length > 2)\n        opts = expr[2];\n\n    return {rx: new RegExp(expr[0], opts), repl: expr[1]};\n});\n\nvar partial = true;\nvar text = cm.selection();\n\nif(!text) {\n    var cpos = cm.cursorPosition();\n    cpos.line = cm.lineNumber(cpos.line)\n    cm.selectLines(cm.firstLine(), 0, cm.lastLine(), 0);\n\n    text = cm.selection();\n    partial = false;\n}\n\nvar original = text;\n$(exprs).each(function() { \n    text = text.replace(this.rx, this.repl);\n});\n\nif( original != text) \n{    \n    cm.replaceSelection(text);\n    panel.fireEvent('contentChanged');\n    editor.showPopup('generic-yes', 'Zmieniono tekst' );\n    editor.advancePopupQueue();\n}\nelse {\n    editor.showPopup('generic-info', 'Brak zmian w tek\u015bcie.');\n    editor.advancePopupQueue();\n}\n\nif(!partial) {\n    cm.selectLines( cm.nthLine(cpos.line), cpos.character );\n}"
864         }
865     }, 
866     {
867         "pk": "insert_text", 
868         "model": "toolbar.scriptlet", 
869         "fields": {
870             "code": "-"
871         }
872     }, 
873     {
874         "pk": "lowercase", 
875         "model": "toolbar.scriptlet", 
876         "fields": {
877             "code": "var cm = panel.texteditor;\r\nvar text = cm.selection();\r\n\r\nif(!text) return;\r\nvar repl = '';\r\nvar lcase = text.toLowerCase();\r\nvar ucase = text.toUpperCase();\r\n\r\nif(lcase == text) repl = ucase; /* was lowercase */\r\nelse if(ucase != text) repl = lcase; /* neither lower- or upper-case */\r\nelse { /* upper case -> title-case */\r\n   var words = $(lcase.split(/\\s/)).map(function() { \r\n        if(this.length > 0) { return this[0].toUpperCase() + this.slice(1); } else { return ''}\r\n   }); \r\n   repl = words.join(' ');\r\n} \r\n\r\nif(repl != text) {\r\n    cm.replaceSelection(repl);\r\n    panel.fireEvent('contentChanged');\r\n};"
878         }
879     }, 
880     {
881         "pk": "insert_stanza", 
882         "model": "toolbar.scriptlet", 
883         "fields": {
884             "code": "var texteditor = panel.texteditor;\r\nvar text = texteditor.selection();\r\n\r\nif(text) {\r\n  var verses = text.split('\\n');\r\n  var text = ''; var buf = ''; var ebuf = '';\r\n  var first = true;\r\n\r\n  for(var i=0;  i < verses.length; i++) {\r\n    verse = verses[i].replace(/^\\s+/, \"\").replace(/\\s+$/, \"\");   \r\n    if(verse) {\r\n      text += (buf ? buf + '/\\n' : '') + ebuf;\r\n      buf = (first ? '<strofa>\\n' : '') + verses[i];\r\n      ebuf = '';\r\n      first = false;\r\n    } else {    \r\n      ebuf += '\\n' + verses[i];\r\n    }\r\n  };\r\n  text = text + buf + '\\n</strofa>' + ebuf; \r\n  texteditor.replaceSelection(text);\r\n}\r\n\r\nif (!text) {\r\n    var pos = texteditor.cursorPosition();\r\n    texteditor.selectLines(pos.line, pos.character + 6 + 2);\r\n}\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\npanel.fireEvent('contentChanged');"
885         }
886     }, 
887     {
888         "pk": "slugify", 
889         "model": "toolbar.scriptlet", 
890         "fields": {
891             "code": "-"
892         }
893     }
894 ]