e2aa914e554dbb1f7a683114a1b0eaaf86353ef4
[redakcja.git] / apps / toolbar / fixtures / przyciski.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <django-objects version="1.0">
3   <object pk="23" model="toolbar.buttongroup">
4     <field type="CharField" name="name">Dodatkowe przyciski w XMLEditor</field>
5     <field type="SlugField" name="slug">xmleditor-extra-buttons</field>
6     <field type="IntegerField" name="position">-1</field>
7   </object>
8   <object pk="24" model="toolbar.buttongroup">
9     <field type="CharField" name="name">HTMLEditor Extra</field>
10     <field type="SlugField" name="slug">htmleditor-extra</field>
11     <field type="IntegerField" name="position">-1</field>
12   </object>
13   <object pk="14" model="toolbar.buttongroup">
14     <field type="CharField" name="name">Akapity i długie cytaty</field>
15     <field type="SlugField" name="slug">akapity-i-dlugie-cytaty</field>
16     <field type="IntegerField" name="position">0</field>
17   </object>
18   <object pk="2" model="toolbar.buttongroup">
19     <field type="CharField" name="name">Autokorekta</field>
20     <field type="SlugField" name="slug">autokorekta</field>
21     <field type="IntegerField" name="position">0</field>
22   </object>
23   <object pk="21" model="toolbar.buttongroup">
24     <field type="CharField" name="name">Bloki</field>
25     <field type="SlugField" name="slug">bloki</field>
26     <field type="IntegerField" name="position">0</field>
27   </object>
28   <object pk="12" model="toolbar.buttongroup">
29     <field type="CharField" name="name">Dramat wierszowany</field>
30     <field type="SlugField" name="slug">dramat-wierszowany</field>
31     <field type="IntegerField" name="position">0</field>
32   </object>
33   <object pk="18" model="toolbar.buttongroup">
34     <field type="CharField" name="name">Dramat współczesny</field>
35     <field type="SlugField" name="slug">dramat-wspolczesny</field>
36     <field type="IntegerField" name="position">0</field>
37   </object>
38   <object pk="13" model="toolbar.buttongroup">
39     <field type="CharField" name="name">Elementy początkowe</field>
40     <field type="SlugField" name="slug">elementy-poczatkowe</field>
41     <field type="IntegerField" name="position">0</field>
42   </object>
43   <object pk="1" model="toolbar.buttongroup">
44     <field type="CharField" name="name">Nagłówki</field>
45     <field type="SlugField" name="slug">naglowki</field>
46     <field type="IntegerField" name="position">0</field>
47   </object>
48   <object pk="22" model="toolbar.buttongroup">
49     <field type="CharField" name="name">Początek dramatu</field>
50     <field type="SlugField" name="slug">poczatek-dramatu</field>
51     <field type="IntegerField" name="position">0</field>
52   </object>
53   <object pk="16" model="toolbar.buttongroup">
54     <field type="CharField" name="name">Polecenia</field>
55     <field type="SlugField" name="slug">polecenia</field>
56     <field type="IntegerField" name="position">0</field>
57   </object>
58   <object pk="11" model="toolbar.buttongroup">
59     <field type="CharField" name="name">Strukturalne</field>
60     <field type="SlugField" name="slug">strukturalne</field>
61     <field type="IntegerField" name="position">0</field>
62   </object>
63   <object pk="15" model="toolbar.buttongroup">
64     <field type="CharField" name="name">Style znakowe</field>
65     <field type="SlugField" name="slug">style-znakowe</field>
66     <field type="IntegerField" name="position">0</field>
67   </object>
68   <object pk="17" model="toolbar.buttongroup">
69     <field type="CharField" name="name">Wersy</field>
70     <field type="SlugField" name="slug">wersy</field>
71     <field type="IntegerField" name="position">0</field>
72   </object>
73   <object pk="5" model="toolbar.button">
74     <field type="CharField" name="label">A&lt;sup&gt;+&lt;/sup&gt;</field>
75     <field type="SlugField" name="slug">increase_font_size</field>
76     <field type="TextField" name="params">{"change": 2}</field>
77     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">codemirror_fontsize</field>
78     <field type="CharField" name="link"/>
79     <field type="CharField" name="key"/>
80     <field type="PositiveIntegerField" name="key_mod">0</field>
81     <field type="CharField" name="tooltip">Zwiększ rozmiar czcionki.</field>
82     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
83       <object pk="23"/>
84     </field>
85   </object>
86   <object pk="6" model="toolbar.button">
87     <field type="CharField" name="label">A&lt;sup&gt;-&lt;/sup&gt;</field>
88     <field type="SlugField" name="slug">descrease_font_size</field>
89     <field type="TextField" name="params">{"change": -2}</field>
90     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">codemirror_fontsize</field>
91     <field type="CharField" name="link"/>
92     <field type="CharField" name="key"/>
93     <field type="PositiveIntegerField" name="key_mod">0</field>
94     <field type="CharField" name="tooltip">Zmniejsz rozmiar czcionki.</field>
95     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
96       <object pk="23"/>
97     </field>
98   </object>
99   <object pk="7" model="toolbar.button">
100     <field type="CharField" name="label">A&lt;sup&gt;=&lt;/sup&gt;</field>
101     <field type="SlugField" name="slug">reset_font_size</field>
102     <field type="TextField" name="params">{"fontSize": 13}</field>
103     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">codemirror_fontsize</field>
104     <field type="CharField" name="link"/>
105     <field type="CharField" name="key"/>
106     <field type="PositiveIntegerField" name="key_mod">0</field>
107     <field type="CharField" name="tooltip">Przywróć orginalny rozmiar czcionki.</field>
108     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
109       <object pk="23"/>
110     </field>
111   </object>
112   <object pk="76" model="toolbar.button">
113     <field type="CharField" name="label">A&lt;sup&gt;↓&lt;/sup&gt;</field>
114     <field type="SlugField" name="slug">tolowercase</field>
115     <field type="TextField" name="params">[]</field>
116     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">lowercase</field>
117     <field type="CharField" name="link"/>
118     <field type="CharField" name="key">u</field>
119     <field type="PositiveIntegerField" name="key_mod">1</field>
120     <field type="CharField" name="tooltip">Zamień wielkie litery na małe.</field>
121     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
122       <object pk="15"/>
123     </field>
124   </object>
125   <object pk="77" model="toolbar.button">
126     <field type="CharField" name="label">Cudzysłowy (1)</field>
127     <field type="SlugField" name="slug">fix-quotes-inner-arrows</field>
128     <field type="TextField" name="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"]]}</field>
129     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">lineregexp</field>
130     <field type="CharField" name="link"/>
131     <field type="CharField" name="key"/>
132     <field type="PositiveIntegerField" name="key_mod">0</field>
133     <field type="CharField" name="tooltip"/>
134     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
135       <object pk="2"/>
136     </field>
137   </object>
138   <object pk="89" model="toolbar.button">
139     <field type="CharField" name="label">Cudzysłowy (2)</field>
140     <field type="SlugField" name="slug">swap-quotes-outer-arrows</field>
141     <field type="TextField" name="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"]]}</field>
142     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">lineregexp</field>
143     <field type="CharField" name="link"/>
144     <field type="CharField" name="key"/>
145     <field type="PositiveIntegerField" name="key_mod">0</field>
146     <field type="CharField" name="tooltip"/>
147     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
148       <object pk="2"/>
149     </field>
150   </object>
151   <object pk="4" model="toolbar.button">
152     <field type="CharField" name="label">Podstawowa</field>
153     <field type="SlugField" name="slug">basic_correction</field>
154     <field type="TextField" name="params">[["fulltextregexp", {"exprs": [["\ufeff", ""], ["$[\\s]*\\d+[\\s]*^", ""], ["-\\s*^", ""], ["\\,\\.\\.|\\.\\,\\.|\\.\\.\\,", "..."]]}], ["lineregexp", {"exprs": [["^\\s+|\\s+$", ""], ["\\s+", " "], ["(,,)\\s+|\\s+(\")", "$1"], ["(\\d)[\u2014-](\\d)", "$1--$2"], ["\u2014", "---"], ["&lt;(/?)P([aert])", "&lt;$1p$2"], ["([^\\.])(\\s*)&lt;/p", "$1.$2&lt;/p"]]}]]</field>
155     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">macro</field>
156     <field type="CharField" name="link"/>
157     <field type="CharField" name="key"/>
158     <field type="PositiveIntegerField" name="key_mod">0</field>
159     <field type="CharField" name="tooltip">Wykonuję operację z novel-pages i poem-pages.</field>
160     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
161       <object pk="2"/>
162     </field>
163   </object>
164   <object pk="3" model="toolbar.button">
165     <field type="CharField" name="label">Usuń spację</field>
166     <field type="SlugField" name="slug">strip_whitespace</field>
167     <field type="TextField" name="params">{"exprs": [["^\\s+|\\s+$", ""], ["\\s+", " "], ["(,,)\\s+|\\s+(\")", "$1"]]}</field>
168     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">lineregexp</field>
169     <field type="CharField" name="link"/>
170     <field type="CharField" name="key"/>
171     <field type="PositiveIntegerField" name="key_mod">0</field>
172     <field type="CharField" name="tooltip">Usuwa zbędne spację z dokumentu.</field>
173     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
174       <object pk="2"/>
175     </field>
176   </object>
177   <object pk="84" model="toolbar.button">
178     <field type="CharField" name="label">Wers wcięty</field>
179     <field type="SlugField" name="slug">wers-wciety</field>
180     <field type="TextField" name="params">{"tag": "wers_wciety", "attrs": {"typ": ""}}</field>
181     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
182     <field type="CharField" name="link"/>
183     <field type="CharField" name="key"/>
184     <field type="PositiveIntegerField" name="key_mod">0</field>
185     <field type="CharField" name="tooltip"/>
186     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
187       <object pk="12"/>
188       <object pk="17"/>
189     </field>
190   </object>
191   <object pk="86" model="toolbar.button">
192     <field type="CharField" name="label">Wydrukuj</field>
193     <field type="SlugField" name="slug">print-xml</field>
194     <field type="TextField" name="params">[]</field>
195     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">
196       <None/>
197     </field>
198     <field type="CharField" name="link">print/xml</field>
199     <field type="CharField" name="key"/>
200     <field type="PositiveIntegerField" name="key_mod">0</field>
201     <field type="CharField" name="tooltip"/>
202     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
203       <object pk="23"/>
204     </field>
205   </object>
206   <object pk="87" model="toolbar.button">
207     <field type="CharField" name="label">Wydrukuj</field>
208     <field type="SlugField" name="slug">htmleditor-print</field>
209     <field type="TextField" name="params">[]</field>
210     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">
211       <None/>
212     </field>
213     <field type="CharField" name="link">print/html</field>
214     <field type="CharField" name="key"/>
215     <field type="PositiveIntegerField" name="key_mod">0</field>
216     <field type="CharField" name="tooltip"/>
217     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
218       <object pk="24"/>
219     </field>
220   </object>
221   <object pk="88" model="toolbar.button">
222     <field type="CharField" name="label">Wydziel</field>
223     <field type="SlugField" name="slug">split-text-from-xmleditor</field>
224     <field type="TextField" name="params">[]</field>
225     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">show_splitmodal</field>
226     <field type="CharField" name="link"/>
227     <field type="CharField" name="key"/>
228     <field type="PositiveIntegerField" name="key_mod">0</field>
229     <field type="CharField" name="tooltip"/>
230     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
231       <object pk="23"/>
232     </field>
233   </object>
234   <object pk="2" model="toolbar.button">
235     <field type="CharField" name="label">Zamień dywiz</field>
236     <field type="SlugField" name="slug">zamien_dywiz</field>
237     <field type="TextField" name="params">{"exprs": [["(\\d)[\u2014-](\\d)", "$1--$2"], ["\u2014", "---"]]}</field>
238     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">lineregexp</field>
239     <field type="CharField" name="link"/>
240     <field type="CharField" name="key"/>
241     <field type="PositiveIntegerField" name="key_mod">0</field>
242     <field type="CharField" name="tooltip">Zamienia '—' na '---', oraz '1—2' na '1--2'.</field>
243     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
244       <object pk="2"/>
245     </field>
246   </object>
247   <object pk="39" model="toolbar.button">
248     <field type="CharField" name="label">akapit</field>
249     <field type="SlugField" name="slug">akapit</field>
250     <field type="TextField" name="params">{"tag": "akap"}</field>
251     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
252     <field type="CharField" name="link"/>
253     <field type="CharField" name="key"/>
254     <field type="PositiveIntegerField" name="key_mod">0</field>
255     <field type="CharField" name="tooltip"/>
256     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
257       <object pk="14"/>
258     </field>
259   </object>
260   <object pk="40" model="toolbar.button">
261     <field type="CharField" name="label">akapit cd.</field>
262     <field type="SlugField" name="slug">akapit-cd</field>
263     <field type="TextField" name="params">{"tag": "akap_cd"}</field>
264     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
265     <field type="CharField" name="link"/>
266     <field type="CharField" name="key"/>
267     <field type="PositiveIntegerField" name="key_mod">0</field>
268     <field type="CharField" name="tooltip"/>
269     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
270       <object pk="14"/>
271     </field>
272   </object>
273   <object pk="41" model="toolbar.button">
274     <field type="CharField" name="label">akapit dialogowy</field>
275     <field type="SlugField" name="slug">akapit-dialogowy</field>
276     <field type="TextField" name="params">{"tag": "akap_dialog"}</field>
277     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
278     <field type="CharField" name="link"/>
279     <field type="CharField" name="key"/>
280     <field type="PositiveIntegerField" name="key_mod">0</field>
281     <field type="CharField" name="tooltip"/>
282     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
283       <object pk="14"/>
284     </field>
285   </object>
286   <object pk="14" model="toolbar.button">
287     <field type="CharField" name="label">akt</field>
288     <field type="SlugField" name="slug">akt</field>
289     <field type="TextField" name="params">{"tag": "akt"}</field>
290     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
291     <field type="CharField" name="link"/>
292     <field type="CharField" name="key"/>
293     <field type="PositiveIntegerField" name="key_mod">0</field>
294     <field type="CharField" name="tooltip"/>
295     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
296       <object pk="1"/>
297     </field>
298   </object>
299   <object pk="32" model="toolbar.button">
300     <field type="CharField" name="label">autor</field>
301     <field type="SlugField" name="slug">autor</field>
302     <field type="TextField" name="params">{"tag": "autor"}</field>
303     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
304     <field type="CharField" name="link"/>
305     <field type="CharField" name="key"/>
306     <field type="PositiveIntegerField" name="key_mod">0</field>
307     <field type="CharField" name="tooltip"/>
308     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
309       <object pk="13"/>
310     </field>
311   </object>
312   <object pk="10" model="toolbar.button">
313     <field type="CharField" name="label">część/księga</field>
314     <field type="SlugField" name="slug">czesc</field>
315     <field type="TextField" name="params">{"tag": "naglowek_czesc"}</field>
316     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
317     <field type="CharField" name="link"/>
318     <field type="CharField" name="key"/>
319     <field type="PositiveIntegerField" name="key_mod">0</field>
320     <field type="CharField" name="tooltip"/>
321     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
322       <object pk="1"/>
323     </field>
324   </object>
325   <object pk="74" model="toolbar.button">
326     <field type="CharField" name="label">dedykacja</field>
327     <field type="SlugField" name="slug">dedykacja</field>
328     <field type="TextField" name="params">{"tag": "dedykacja"}</field>
329     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
330     <field type="CharField" name="link"/>
331     <field type="CharField" name="key"/>
332     <field type="PositiveIntegerField" name="key_mod">0</field>
333     <field type="CharField" name="tooltip"/>
334     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
335       <object pk="13"/>
336       <object pk="22"/>
337     </field>
338   </object>
339   <object pk="62" model="toolbar.button">
340     <field type="CharField" name="label">didaskalia</field>
341     <field type="SlugField" name="slug">didaskalia</field>
342     <field type="TextField" name="params">{"tag": "didaskalia"}</field>
343     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
344     <field type="CharField" name="link"/>
345     <field type="CharField" name="key"/>
346     <field type="PositiveIntegerField" name="key_mod">0</field>
347     <field type="CharField" name="tooltip"/>
348     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
349       <object pk="12"/>
350       <object pk="18"/>
351     </field>
352   </object>
353   <object pk="79" model="toolbar.button">
354     <field type="CharField" name="label">didaskalia początkowe</field>
355     <field type="SlugField" name="slug">didaskalia-poczatkowe</field>
356     <field type="TextField" name="params">{"tag": "miejsce_czas"}</field>
357     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
358     <field type="CharField" name="link"/>
359     <field type="CharField" name="key"/>
360     <field type="PositiveIntegerField" name="key_mod">0</field>
361     <field type="CharField" name="tooltip"/>
362     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
363       <object pk="22"/>
364     </field>
365   </object>
366   <object pk="63" model="toolbar.button">
367     <field type="CharField" name="label">didaskalia wewn.</field>
368     <field type="SlugField" name="slug">didaskalia-wewn</field>
369     <field type="TextField" name="params">{"tag": "didask_tekst"}</field>
370     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
371     <field type="CharField" name="link"/>
372     <field type="CharField" name="key"/>
373     <field type="PositiveIntegerField" name="key_mod">0</field>
374     <field type="CharField" name="tooltip"/>
375     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
376       <object pk="18"/>
377       <object pk="15"/>
378     </field>
379   </object>
380   <object pk="20" model="toolbar.button">
381     <field type="CharField" name="label">dramat wiersz.</field>
382     <field type="SlugField" name="slug">dramat-wiersz</field>
383     <field type="TextField" name="params">{"tag": "dramat_wierszowany_l"}</field>
384     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
385     <field type="CharField" name="link"/>
386     <field type="CharField" name="key"/>
387     <field type="PositiveIntegerField" name="key_mod">0</field>
388     <field type="CharField" name="tooltip"/>
389     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
390       <object pk="11"/>
391     </field>
392   </object>
393   <object pk="22" model="toolbar.button">
394     <field type="CharField" name="label">dramat wiersz./w. łam</field>
395     <field type="SlugField" name="slug">dramat-wiersz-w-lam</field>
396     <field type="TextField" name="params">{"tag": "dramat_wierszowany_lp"}</field>
397     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
398     <field type="CharField" name="link"/>
399     <field type="CharField" name="key"/>
400     <field type="PositiveIntegerField" name="key_mod">0</field>
401     <field type="CharField" name="tooltip"/>
402     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
403       <object pk="11"/>
404     </field>
405   </object>
406   <object pk="21" model="toolbar.button">
407     <field type="CharField" name="label">dramat współczesny</field>
408     <field type="SlugField" name="slug">dramat-wspolczesny</field>
409     <field type="TextField" name="params">{"tag": "dramat_wspolczesny"}</field>
410     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
411     <field type="CharField" name="link"/>
412     <field type="CharField" name="key"/>
413     <field type="PositiveIntegerField" name="key_mod">0</field>
414     <field type="CharField" name="tooltip"/>
415     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
416       <object pk="11"/>
417     </field>
418   </object>
419   <object pk="38" model="toolbar.button">
420     <field type="CharField" name="label">dzieło nadrzędne</field>
421     <field type="SlugField" name="slug">dzielo-nadrzedne</field>
422     <field type="TextField" name="params">{"tag": "dzielo_nadrzedne"}</field>
423     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
424     <field type="CharField" name="link"/>
425     <field type="CharField" name="key"/>
426     <field type="PositiveIntegerField" name="key_mod">0</field>
427     <field type="CharField" name="tooltip"/>
428     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
429       <object pk="13"/>
430     </field>
431   </object>
432   <object pk="67" model="toolbar.button">
433     <field type="CharField" name="label">długi cyt. poet.</field>
434     <field type="SlugField" name="slug">dlugi-cyt-poet</field>
435     <field type="TextField" name="params">{"tag": "poezja_cyt"}</field>
436     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
437     <field type="CharField" name="link"/>
438     <field type="CharField" name="key"/>
439     <field type="PositiveIntegerField" name="key_mod">0</field>
440     <field type="CharField" name="tooltip"/>
441     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
442       <object pk="14"/>
443       <object pk="21"/>
444     </field>
445   </object>
446   <object pk="42" model="toolbar.button">
447     <field type="CharField" name="label">długi cytat</field>
448     <field type="SlugField" name="slug">dlugi-cytat</field>
449     <field type="TextField" name="params">{"tag": "dlugi_cyt"}</field>
450     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
451     <field type="CharField" name="link"/>
452     <field type="CharField" name="key"/>
453     <field type="PositiveIntegerField" name="key_mod">0</field>
454     <field type="CharField" name="tooltip"/>
455     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
456       <object pk="14"/>
457       <object pk="21"/>
458     </field>
459   </object>
460   <object pk="52" model="toolbar.button">
461     <field type="CharField" name="label">ekstra</field>
462     <field type="SlugField" name="slug">ekstra</field>
463     <field type="TextField" name="params">{"tag": "ekstra"}</field>
464     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
465     <field type="CharField" name="link"/>
466     <field type="CharField" name="key"/>
467     <field type="PositiveIntegerField" name="key_mod">0</field>
468     <field type="CharField" name="tooltip"/>
469     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
470       <object pk="15"/>
471     </field>
472   </object>
473   <object pk="82" model="toolbar.button">
474     <field type="CharField" name="label">kwestia</field>
475     <field type="SlugField" name="slug">kwestia</field>
476     <field type="TextField" name="params">{"tag": "kwestia"}</field>
477     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
478     <field type="CharField" name="link"/>
479     <field type="CharField" name="key"/>
480     <field type="PositiveIntegerField" name="key_mod">0</field>
481     <field type="CharField" name="tooltip"/>
482     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
483       <object pk="12"/>
484       <object pk="18"/>
485     </field>
486   </object>
487   <object pk="23" model="toolbar.button">
488     <field type="CharField" name="label">liryka</field>
489     <field type="SlugField" name="slug">liryka</field>
490     <field type="TextField" name="params">{"tag": "liryka_l"}</field>
491     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
492     <field type="CharField" name="link"/>
493     <field type="CharField" name="key"/>
494     <field type="PositiveIntegerField" name="key_mod">0</field>
495     <field type="CharField" name="tooltip"/>
496     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
497       <object pk="11"/>
498     </field>
499   </object>
500   <object pk="24" model="toolbar.button">
501     <field type="CharField" name="label">liryka/w. łam</field>
502     <field type="SlugField" name="slug">liryka-w-lam</field>
503     <field type="TextField" name="params">{"tag": "liryka_lp"}</field>
504     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
505     <field type="CharField" name="link"/>
506     <field type="CharField" name="key"/>
507     <field type="PositiveIntegerField" name="key_mod">0</field>
508     <field type="CharField" name="tooltip"/>
509     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
510       <object pk="11"/>
511     </field>
512   </object>
513   <object pk="78" model="toolbar.button">
514     <field type="CharField" name="label">lista osób: pole</field>
515     <field type="SlugField" name="slug">lista-osob-pole</field>
516     <field type="TextField" name="params">{"tag": "lista_osoba", "attrs": {"typ": ""}}</field>
517     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
518     <field type="CharField" name="link"/>
519     <field type="CharField" name="key"/>
520     <field type="PositiveIntegerField" name="key_mod">0</field>
521     <field type="CharField" name="tooltip"/>
522     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
523       <object pk="22"/>
524     </field>
525   </object>
526   <object pk="47" model="toolbar.button">
527     <field type="CharField" name="label">mamtemat.</field>
528     <field type="SlugField" name="slug">matemat</field>
529     <field type="TextField" name="params">{"tag": "mat"}</field>
530     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
531     <field type="CharField" name="link"/>
532     <field type="CharField" name="key"/>
533     <field type="PositiveIntegerField" name="key_mod">0</field>
534     <field type="CharField" name="tooltip"/>
535     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
536       <object pk="15"/>
537     </field>
538   </object>
539   <object pk="75" model="toolbar.button">
540     <field type="CharField" name="label">motto</field>
541     <field type="SlugField" name="slug">motto</field>
542     <field type="TextField" name="params">{"tag": "motto"}</field>
543     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
544     <field type="CharField" name="link"/>
545     <field type="CharField" name="key"/>
546     <field type="PositiveIntegerField" name="key_mod">0</field>
547     <field type="CharField" name="tooltip"/>
548     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
549       <object pk="13"/>
550       <object pk="22"/>
551     </field>
552   </object>
553   <object pk="37" model="toolbar.button">
554     <field type="CharField" name="label">motto podpis</field>
555     <field type="SlugField" name="slug">motto-podpis</field>
556     <field type="TextField" name="params">{"tag": "motto_podpis"}</field>
557     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
558     <field type="CharField" name="link"/>
559     <field type="CharField" name="key"/>
560     <field type="PositiveIntegerField" name="key_mod">0</field>
561     <field type="CharField" name="tooltip"/>
562     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
563       <object pk="13"/>
564     </field>
565   </object>
566   <object pk="16" model="toolbar.button">
567     <field type="CharField" name="label">nagłówek kwestii</field>
568     <field type="SlugField" name="slug">naglowek-kwestii</field>
569     <field type="TextField" name="params">{"tag": "naglowek_osoba"}</field>
570     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
571     <field type="CharField" name="link"/>
572     <field type="CharField" name="key"/>
573     <field type="PositiveIntegerField" name="key_mod">0</field>
574     <field type="CharField" name="tooltip"/>
575     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
576       <object pk="1"/>
577     </field>
578   </object>
579   <object pk="35" model="toolbar.button">
580     <field type="CharField" name="label">nota</field>
581     <field type="SlugField" name="slug">nota</field>
582     <field type="TextField" name="params">{"tag": "nota"}</field>
583     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
584     <field type="CharField" name="link"/>
585     <field type="CharField" name="key"/>
586     <field type="PositiveIntegerField" name="key_mod">0</field>
587     <field type="CharField" name="tooltip"/>
588     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
589       <object pk="13"/>
590     </field>
591   </object>
592   <object pk="18" model="toolbar.button">
593     <field type="CharField" name="label">opowiadanie</field>
594     <field type="SlugField" name="slug">opowiadanie</field>
595     <field type="TextField" name="params">{"tag": "opowiadanie"}</field>
596     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
597     <field type="CharField" name="link"/>
598     <field type="CharField" name="key"/>
599     <field type="PositiveIntegerField" name="key_mod">0</field>
600     <field type="CharField" name="tooltip"/>
601     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
602       <object pk="11"/>
603     </field>
604   </object>
605   <object pk="64" model="toolbar.button">
606     <field type="CharField" name="label">osoba</field>
607     <field type="SlugField" name="slug">osoba</field>
608     <field type="TextField" name="params">{"tag": "osoba"}</field>
609     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
610     <field type="CharField" name="link"/>
611     <field type="CharField" name="key"/>
612     <field type="PositiveIntegerField" name="key_mod">0</field>
613     <field type="CharField" name="tooltip"/>
614     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
615       <object pk="18"/>
616       <object pk="15"/>
617     </field>
618   </object>
619   <object pk="12" model="toolbar.button">
620     <field type="CharField" name="label">podrozdział</field>
621     <field type="SlugField" name="slug">podrozdzial</field>
622     <field type="TextField" name="params">{"tag": "naglowek_podrozdzial"}</field>
623     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
624     <field type="CharField" name="link"/>
625     <field type="CharField" name="key"/>
626     <field type="PositiveIntegerField" name="key_mod">0</field>
627     <field type="CharField" name="tooltip"/>
628     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
629       <object pk="1"/>
630     </field>
631   </object>
632   <object pk="34" model="toolbar.button">
633     <field type="CharField" name="label">podtytuł</field>
634     <field type="SlugField" name="slug">podtytul</field>
635     <field type="TextField" name="params">{"tag": "podtytul"}</field>
636     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
637     <field type="CharField" name="link"/>
638     <field type="CharField" name="key"/>
639     <field type="PositiveIntegerField" name="key_mod">0</field>
640     <field type="CharField" name="tooltip"/>
641     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
642       <object pk="13"/>
643     </field>
644   </object>
645   <object pk="19" model="toolbar.button">
646     <field type="CharField" name="label">powieść</field>
647     <field type="SlugField" name="slug">powiesc</field>
648     <field type="TextField" name="params">{"tag": "powiesc"}</field>
649     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
650     <field type="CharField" name="link"/>
651     <field type="CharField" name="key"/>
652     <field type="PositiveIntegerField" name="key_mod">0</field>
653     <field type="CharField" name="tooltip"/>
654     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
655       <object pk="11"/>
656     </field>
657   </object>
658   <object pk="68" model="toolbar.button">
659     <field type="CharField" name="label">przypis autorski</field>
660     <field type="SlugField" name="slug">przypis-autorski</field>
661     <field type="TextField" name="params">{"tag": "pa"}</field>
662     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
663     <field type="CharField" name="link"/>
664     <field type="CharField" name="key"/>
665     <field type="PositiveIntegerField" name="key_mod">0</field>
666     <field type="CharField" name="tooltip"/>
667     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
668       <object pk="21"/>
669     </field>
670   </object>
671   <object pk="71" model="toolbar.button">
672     <field type="CharField" name="label">przypis edytorski</field>
673     <field type="SlugField" name="slug">przypis-edytorski</field>
674     <field type="TextField" name="params">{"tag": "pe"}</field>
675     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
676     <field type="CharField" name="link"/>
677     <field type="CharField" name="key"/>
678     <field type="PositiveIntegerField" name="key_mod">0</field>
679     <field type="CharField" name="tooltip"/>
680     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
681       <object pk="21"/>
682     </field>
683   </object>
684   <object pk="70" model="toolbar.button">
685     <field type="CharField" name="label">przypis redaktorski</field>
686     <field type="SlugField" name="slug">przypis-redaktorski</field>
687     <field type="TextField" name="params">{"tag": "pr"}</field>
688     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
689     <field type="CharField" name="link"/>
690     <field type="CharField" name="key"/>
691     <field type="PositiveIntegerField" name="key_mod">0</field>
692     <field type="CharField" name="tooltip"/>
693     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
694       <object pk="21"/>
695     </field>
696   </object>
697   <object pk="69" model="toolbar.button">
698     <field type="CharField" name="label">przypis tłumacza</field>
699     <field type="SlugField" name="slug">przypis-tlumacza</field>
700     <field type="TextField" name="params">{"tag": "pt"}</field>
701     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
702     <field type="CharField" name="link"/>
703     <field type="CharField" name="key"/>
704     <field type="PositiveIntegerField" name="key_mod">0</field>
705     <field type="CharField" name="tooltip"/>
706     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
707       <object pk="21"/>
708     </field>
709   </object>
710   <object pk="11" model="toolbar.button">
711     <field type="CharField" name="label">rozdział</field>
712     <field type="SlugField" name="slug">rozdzial</field>
713     <field type="TextField" name="params">{"tag": "naglowek_rozdzial"}</field>
714     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
715     <field type="CharField" name="link"/>
716     <field type="CharField" name="key"/>
717     <field type="PositiveIntegerField" name="key_mod">0</field>
718     <field type="CharField" name="tooltip"/>
719     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
720       <object pk="1"/>
721     </field>
722   </object>
723   <object pk="15" model="toolbar.button">
724     <field type="CharField" name="label">scena</field>
725     <field type="SlugField" name="slug">scena</field>
726     <field type="TextField" name="params">{"tag": "naglowek_scena"}</field>
727     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
728     <field type="CharField" name="link"/>
729     <field type="CharField" name="key"/>
730     <field type="PositiveIntegerField" name="key_mod">0</field>
731     <field type="CharField" name="tooltip"/>
732     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
733       <object pk="1"/>
734     </field>
735   </object>
736   <object pk="54" model="toolbar.button">
737     <field type="CharField" name="label">sep. asteryks</field>
738     <field type="SlugField" name="slug">sep-asteryks</field>
739     <field type="TextField" name="params">{"tag": "sekcja_asteryks"}</field>
740     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
741     <field type="CharField" name="link"/>
742     <field type="CharField" name="key"/>
743     <field type="PositiveIntegerField" name="key_mod">0</field>
744     <field type="CharField" name="tooltip"/>
745     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
746       <object pk="16"/>
747     </field>
748   </object>
749   <object pk="55" model="toolbar.button">
750     <field type="CharField" name="label">sep. linia</field>
751     <field type="SlugField" name="slug">sep-linia</field>
752     <field type="TextField" name="params">{"tag": "separator_linia"}</field>
753     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
754     <field type="CharField" name="link"/>
755     <field type="CharField" name="key"/>
756     <field type="PositiveIntegerField" name="key_mod">0</field>
757     <field type="CharField" name="tooltip"/>
758     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
759       <object pk="16"/>
760     </field>
761   </object>
762   <object pk="53" model="toolbar.button">
763     <field type="CharField" name="label">sep. światło</field>
764     <field type="SlugField" name="slug">sep-swiatlo</field>
765     <field type="TextField" name="params">{"tag": "sekcja_swiatlo"}</field>
766     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
767     <field type="CharField" name="link"/>
768     <field type="CharField" name="key"/>
769     <field type="PositiveIntegerField" name="key_mod">0</field>
770     <field type="CharField" name="tooltip"/>
771     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
772       <object pk="16"/>
773     </field>
774   </object>
775   <object pk="81" model="toolbar.button">
776     <field type="CharField" name="label">strofa</field>
777     <field type="SlugField" name="slug">strofa</field>
778     <field type="TextField" name="params">{"tag": "strofa"}</field>
779     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_stanza</field>
780     <field type="CharField" name="link"/>
781     <field type="CharField" name="key">s</field>
782     <field type="PositiveIntegerField" name="key_mod">1</field>
783     <field type="CharField" name="tooltip"/>
784     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
785       <object pk="12"/>
786       <object pk="17"/>
787     </field>
788   </object>
789   <object pk="46" model="toolbar.button">
790     <field type="CharField" name="label">słowo obce</field>
791     <field type="SlugField" name="slug">slowo-obce</field>
792     <field type="TextField" name="params">{"tag": "slowo_obce"}</field>
793     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
794     <field type="CharField" name="link"/>
795     <field type="CharField" name="key"/>
796     <field type="PositiveIntegerField" name="key_mod">0</field>
797     <field type="CharField" name="tooltip"/>
798     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
799       <object pk="15"/>
800     </field>
801   </object>
802   <object pk="17" model="toolbar.button">
803     <field type="CharField" name="label">tagi główne</field>
804     <field type="SlugField" name="slug">tagi-glowne</field>
805     <field type="TextField" name="params">{"tag": "utwor"}</field>
806     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
807     <field type="CharField" name="link"/>
808     <field type="CharField" name="key"/>
809     <field type="PositiveIntegerField" name="key_mod">0</field>
810     <field type="CharField" name="tooltip"/>
811     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
812       <object pk="11"/>
813     </field>
814   </object>
815   <object pk="33" model="toolbar.button">
816     <field type="CharField" name="label">tytuł</field>
817     <field type="SlugField" name="slug">tytul</field>
818     <field type="TextField" name="params">{"tag": "nazwa_utworu"}</field>
819     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
820     <field type="CharField" name="link"/>
821     <field type="CharField" name="key"/>
822     <field type="PositiveIntegerField" name="key_mod">0</field>
823     <field type="CharField" name="tooltip"/>
824     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
825       <object pk="13"/>
826     </field>
827   </object>
828   <object pk="45" model="toolbar.button">
829     <field type="CharField" name="label">tytuł dzieła</field>
830     <field type="SlugField" name="slug">tytul-dziela</field>
831     <field type="TextField" name="params">{"tag": "tytul_dziela", "attrs": {"typ": "1"}}</field>
832     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
833     <field type="CharField" name="link"/>
834     <field type="CharField" name="key"/>
835     <field type="PositiveIntegerField" name="key_mod">0</field>
836     <field type="CharField" name="tooltip"/>
837     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
838       <object pk="15"/>
839     </field>
840   </object>
841   <object pk="51" model="toolbar.button">
842     <field type="CharField" name="label">uwaga</field>
843     <field type="SlugField" name="slug">uwaga</field>
844     <field type="TextField" name="params">{"tag": "uwaga"}</field>
845     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
846     <field type="CharField" name="link"/>
847     <field type="CharField" name="key"/>
848     <field type="PositiveIntegerField" name="key_mod">0</field>
849     <field type="CharField" name="tooltip"/>
850     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
851       <object pk="15"/>
852     </field>
853   </object>
854   <object pk="83" model="toolbar.button">
855     <field type="CharField" name="label">wers akap.</field>
856     <field type="SlugField" name="slug">wers-akap</field>
857     <field type="TextField" name="params">{"tag": "wers_akap"}</field>
858     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
859     <field type="CharField" name="link"/>
860     <field type="CharField" name="key"/>
861     <field type="PositiveIntegerField" name="key_mod">0</field>
862     <field type="CharField" name="tooltip"/>
863     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
864       <object pk="12"/>
865       <object pk="17"/>
866     </field>
867   </object>
868   <object pk="85" model="toolbar.button">
869     <field type="CharField" name="label">wers cd.</field>
870     <field type="SlugField" name="slug">wers-cd</field>
871     <field type="TextField" name="params">{"tag": "wers_cd"}</field>
872     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
873     <field type="CharField" name="link"/>
874     <field type="CharField" name="key"/>
875     <field type="PositiveIntegerField" name="key_mod">0</field>
876     <field type="CharField" name="tooltip"/>
877     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
878       <object pk="12"/>
879       <object pk="17"/>
880     </field>
881   </object>
882   <object pk="48" model="toolbar.button">
883     <field type="CharField" name="label">www</field>
884     <field type="SlugField" name="slug">www</field>
885     <field type="TextField" name="params">{"tag": "www"}</field>
886     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
887     <field type="CharField" name="link"/>
888     <field type="CharField" name="key"/>
889     <field type="PositiveIntegerField" name="key_mod">0</field>
890     <field type="CharField" name="tooltip"/>
891     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
892       <object pk="15"/>
893     </field>
894   </object>
895   <object pk="44" model="toolbar.button">
896     <field type="CharField" name="label">wyróżnienie</field>
897     <field type="SlugField" name="slug">wyroznienie</field>
898     <field type="TextField" name="params">{"tag": "wyroznienie"}</field>
899     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
900     <field type="CharField" name="link"/>
901     <field type="CharField" name="key"/>
902     <field type="PositiveIntegerField" name="key_mod">0</field>
903     <field type="CharField" name="tooltip"/>
904     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
905       <object pk="15"/>
906     </field>
907   </object>
908   <object pk="25" model="toolbar.button">
909     <field type="CharField" name="label">wywiad</field>
910     <field type="SlugField" name="slug">wywiad</field>
911     <field type="TextField" name="params">{"tag": "wywiad"}</field>
912     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
913     <field type="CharField" name="link"/>
914     <field type="CharField" name="key"/>
915     <field type="PositiveIntegerField" name="key_mod">0</field>
916     <field type="CharField" name="tooltip"/>
917     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
918       <object pk="11"/>
919     </field>
920   </object>
921   <object pk="73" model="toolbar.button">
922     <field type="CharField" name="label">wywiad odpowiedź</field>
923     <field type="SlugField" name="slug">wywiad-odpowiedz</field>
924     <field type="TextField" name="params">{"tag": "wywiad_odp"}</field>
925     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
926     <field type="CharField" name="link"/>
927     <field type="CharField" name="key"/>
928     <field type="PositiveIntegerField" name="key_mod">0</field>
929     <field type="CharField" name="tooltip"/>
930     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
931       <object pk="21"/>
932     </field>
933   </object>
934   <object pk="72" model="toolbar.button">
935     <field type="CharField" name="label">wywiad pytanie</field>
936     <field type="SlugField" name="slug">wywiad-pytanie</field>
937     <field type="TextField" name="params">{"tag": "wywiad_pyt"}</field>
938     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
939     <field type="CharField" name="link"/>
940     <field type="CharField" name="key"/>
941     <field type="PositiveIntegerField" name="key_mod">0</field>
942     <field type="CharField" name="tooltip"/>
943     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
944       <object pk="21"/>
945     </field>
946   </object>
947   <object pk="56" model="toolbar.button">
948     <field type="CharField" name="label">zastępnik wersu</field>
949     <field type="SlugField" name="slug">zastepnik-wersu</field>
950     <field type="TextField" name="params">{"tag": "zastepnik_wersu"}</field>
951     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
952     <field type="CharField" name="link"/>
953     <field type="CharField" name="key"/>
954     <field type="PositiveIntegerField" name="key_mod">0</field>
955     <field type="CharField" name="tooltip"/>
956     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
957       <object pk="16"/>
958     </field>
959   </object>
960   <object pk="13" model="toolbar.button">
961     <field type="CharField" name="label">śródtytuł</field>
962     <field type="SlugField" name="slug">srodtytul</field>
963     <field type="TextField" name="params">{"tag": "srodtytul"}</field>
964     <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
965     <field type="CharField" name="link"/>
966     <field type="CharField" name="key"/>
967     <field type="PositiveIntegerField" name="key_mod">0</field>
968     <field type="CharField" name="tooltip"/>
969     <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
970       <object pk="1"/>
971     </field>
972   </object>
973   <object pk="insert_tag" model="toolbar.scriptlet">
974     <field type="TextField" name="code">var texteditor = panel.texteditor;
975
976 var text = texteditor.selection();
977
978 var out = '&lt;'+params.tag;
979
980 for (var attr in params.attrs) {
981
982     out += ' '+attr+'="' + params.attrs[attr] + '"';
983
984 };
985
986 out += '&gt;';
987
988 out += text;
989
990 out += '&lt;/' + params.tag + '&gt;';
991
992  
993
994 texteditor.replaceSelection(out);
995
996
997
998 if (text.length == 0) {
999
1000     var pos = texteditor.cursorPosition();
1001
1002     texteditor.selectLines(pos.line, pos.character + params.tag.length + 2);
1003
1004 }
1005
1006
1007
1008 panel.fireEvent('contentChanged');</field>
1009   </object>
1010   <object pk="lineregexp" model="toolbar.scriptlet">
1011     <field type="TextField" name="code">editor.showPopup('generic-info', 'Przetwarzanie zaznaczonego tekstu...', '', -1);
1012
1013 var cm = panel.texteditor;
1014 var exprs = $.map(params.exprs, function(expr) {
1015
1016     var opts = "g";
1017
1018     if(expr.length &gt; 2)
1019
1020         opts = expr[2];
1021
1022     return {rx: new RegExp(expr[0], opts), repl: expr[1]};
1023
1024 });
1025
1026
1027
1028 var partial = true;
1029
1030 var text = cm.selection();
1031
1032
1033
1034 if(!text) {
1035
1036     var cpos = cm.cursorPosition();
1037
1038     cpos.line = cm.lineNumber(cpos.line)
1039
1040     cm.selectLines(cm.firstLine(), 0, cm.lastLine(), 0);
1041
1042     text = cm.selection();
1043
1044     partial = false;
1045
1046 }
1047
1048
1049
1050 var changed = 0;
1051 var lines = text.split('\n');
1052 var lines = $.map(lines, function(line) { 
1053     var old_line = line;
1054     $(exprs).each(function() { 
1055         var expr = this;
1056         line = line.replace(expr.rx, expr.repl);
1057     });
1058
1059     if(old_line != line) changed += 1;
1060     return line;
1061 });
1062
1063 if(changed &gt; 0) 
1064 {
1065     cm.replaceSelection( lines.join('\n') );
1066     panel.fireEvent('contentChanged');
1067     editor.showPopup('generic-yes', 'Zmieniono ' + changed + ' linii.', 1500);
1068     editor.advancePopupQueue();
1069 }
1070 else {
1071     editor.showPopup('generic-info',  'Brak zmian w tekście', 1500);
1072     editor.advancePopupQueue();
1073 }
1074
1075 if(!partial)
1076     cm.selectLines( cm.nthLine(cpos.line), cpos.character )</field>
1077   </object>
1078   <object pk="codemirror_fontsize" model="toolbar.scriptlet">
1079     <field type="TextField" name="code">var texteditor = panel.texteditor;
1080
1081 var frameBody = $('body', $(texteditor.frame).contents());
1082
1083
1084
1085 if(params.fontSize) {
1086
1087     frameBody.css('font-size', params.fontSize);
1088
1089 }
1090
1091 else {
1092
1093     var old_size = parseInt(frameBody.css('font-size'));
1094
1095     frameBody.css('font-size', old_size + (params.change || 0) );
1096
1097 }</field>
1098   </object>
1099   <object pk="fulltextregexp" model="toolbar.scriptlet">
1100     <field type="TextField" name="code">editor.showPopup('generic-info', 'Przetwarzanie zaznaczonego tekstu...', '', -1);
1101 $.log(editor, panel, params);
1102 var cm = panel.texteditor;
1103 var exprs = $.map(params.exprs, function(expr) {
1104     var opts = "mg";
1105     if(expr.length &gt; 2)
1106         opts = expr[2];
1107
1108     return {rx: new RegExp(expr[0], opts), repl: expr[1]};
1109 });
1110
1111 var partial = true;
1112 var text = cm.selection();
1113
1114 if(!text) {
1115     var cpos = cm.cursorPosition();
1116     cpos.line = cm.lineNumber(cpos.line)
1117     cm.selectLines(cm.firstLine(), 0, cm.lastLine(), 0);
1118
1119     text = cm.selection();
1120     partial = false;
1121 }
1122
1123 var original = text;
1124 $(exprs).each(function() { 
1125     text = text.replace(this.rx, this.repl);
1126 });
1127
1128 if( original != text) 
1129 {    
1130     cm.replaceSelection(text);
1131     panel.fireEvent('contentChanged');
1132     editor.showPopup('generic-yes', 'Zmieniono tekst' );
1133     editor.advancePopupQueue();
1134 }
1135 else {
1136     editor.showPopup('generic-info', 'Brak zmian w tekście.');
1137     editor.advancePopupQueue();
1138 }
1139
1140 if(!partial) {
1141     cm.selectLines( cm.nthLine(cpos.line), cpos.character );
1142 }</field>
1143   </object>
1144   <object pk="macro" model="toolbar.scriptlet">
1145     <field type="TextField" name="code">$(params).each(function() {
1146     $.log(this[0], this[1]);
1147     editor.callScriptlet(this[0], panel, this[1]);
1148
1149 });</field>
1150   </object>
1151   <object pk="lowercase" model="toolbar.scriptlet">
1152     <field type="TextField" name="code">var cm = panel.texteditor;
1153 var text = cm.selection();
1154
1155 if(!text) return;
1156 var repl = '';
1157 var lcase = text.toLowerCase();
1158 var ucase = text.toUpperCase();
1159
1160 if(lcase == text) repl = ucase; /* was lowercase */
1161 else if(ucase != text) repl = lcase; /* neither lower- or upper-case */
1162 else { /* upper case -&gt; camel-case */
1163    repl = ''
1164    $(lcase.split(/\s/)).each(function() { 
1165      if(this.length &gt; 0) repl += this[0].toUpperCase() + this.slice(1) + ' ';
1166    }); 
1167
1168
1169 if(repl != text) {
1170     cm.replaceSelection(repl);
1171     panel.fireEvent('contentChanged');
1172 };</field>
1173   </object>
1174   <object pk="insert_stanza" model="toolbar.scriptlet">
1175     <field type="TextField" name="code">var texteditor = panel.texteditor;
1176 var text = texteditor.selection();
1177
1178 if(text) {
1179   var verses = text.split('\n');
1180   var text = ''; var buf = ''; var ebuf = '';
1181   var first = true;
1182
1183   for(var i=0;  i &lt; verses.length; i++) {
1184     verse = verses[i].replace(/^\s+/, "").replace(/\s+$/, "");   
1185     if(verse) {
1186       text += (buf ? buf + '\\\n' : '') + ebuf;
1187       buf = (first ? '&lt;strofa&gt;\n' : '') + verses[i];
1188       ebuf = '';
1189       first = false;
1190     } else {    
1191       ebuf += '\n' + verses[i];
1192     }
1193   };
1194   text = text + buf + '\n&lt;/strofa&gt;' + ebuf; 
1195   texteditor.replaceSelection(text);
1196 }
1197
1198 if (!text) {
1199     var pos = texteditor.cursorPosition();
1200     texteditor.selectLines(pos.line, pos.character + 6 + 2);
1201 }
1202
1203
1204
1205
1206
1207
1208
1209 panel.fireEvent('contentChanged');</field>
1210   </object>
1211   <object pk="show_splitmodal" model="toolbar.scriptlet">
1212     <field type="TextField" name="code">var cm = panel.texteditor;
1213
1214 cm.focus();
1215
1216 var text = cm.selection();
1217
1218 if(!text) return;
1219
1220
1221
1222 cm.replaceSelection('&lt;include-tag-placeholder /&gt;');
1223
1224 var fulltext = cm.getCode();
1225
1226
1227
1228 $('#split-dialog').jqmShow({
1229
1230     selection: text, fulltext: fulltext,
1231
1232     success: function(uri) {
1233
1234         editor.refreshPanels();
1235
1236     },
1237
1238     failure: function() { cm.undo(); } 
1239
1240 }) ;</field>
1241   </object>
1242 </django-objects>