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