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