Kilka poprawek w CSS. poprawione przyciski.
authorŁukasz Rekucki <lrekucki@gmail.com>
Tue, 8 Sep 2009 16:47:33 +0000 (18:47 +0200)
committerŁukasz Rekucki <lrekucki@gmail.com>
Tue, 8 Sep 2009 16:47:33 +0000 (18:47 +0200)
apps/toolbar/models.py
dump_toolbar.sh
fixtures/przyciski.xml
project/static/css/master.css
project/static/css/toolbar.css

index 614cfcb..ae101e0 100644 (file)
@@ -16,7 +16,7 @@ class ButtonGroup(models.Model):
 
 class Button(models.Model):
     label = models.CharField(max_length=32)
-    slug = models.SlugField() #unused
+    slug = models.SlugField(unique=True) #unused
 
     # behaviour
     params = models.TextField() # TODO: should be a JSON field
@@ -27,8 +27,7 @@ class Button(models.Model):
     tooltip = models.CharField(blank=True, max_length=120)
 
     # Why the button is restricted to have the same position in each group ?
-    # position = models.IntegerField(default=0)
-   
+    # position = models.IntegerField(default=0)   
     group = models.ManyToManyField(ButtonGroup)
     
     class Meta:
index 3bac9fe..796c8c5 100755 (executable)
@@ -1 +1,2 @@
-./project/manage.py dumpdata --format=xml toolbar > fixtures/przyciski.xml
+./project/manage.py dumpdata --format=xml toolbar | xmllint --format >
+fixtures/przyciski.xml.new
index d67f3ed..1794c6d 100644 (file)
-<?xml version="1.0" encoding="utf-8"?>\r
-<django-objects version="1.0"><object pk="14" model="toolbar.buttongroup"><field type="CharField" name="name">Akapity i długie cytaty</field><field type="SlugField" name="slug">akapity-i-dlugie-cytaty</field><field type="IntegerField" name="position">0</field></object><object pk="2" model="toolbar.buttongroup"><field type="CharField" name="name">Autokorekta</field><field type="SlugField" name="slug">autokorekta</field><field type="IntegerField" name="position">0</field></object><object pk="21" model="toolbar.buttongroup"><field type="CharField" name="name">Bloki</field><field type="SlugField" name="slug">bloki</field><field type="IntegerField" name="position">0</field></object><object pk="20" model="toolbar.buttongroup"><field type="CharField" name="name">Bloki początkowe</field><field type="SlugField" name="slug">bloki-poczatkowe</field><field type="IntegerField" name="position">0</field></object><object pk="19" model="toolbar.buttongroup"><field type="CharField" name="name">Deklaracje</field><field type="SlugField" name="slug">deklaracje</field><field type="IntegerField" name="position">0</field></object><object pk="12" model="toolbar.buttongroup"><field type="CharField" name="name">Dramat wierszowany</field><field type="SlugField" name="slug">dramat-wierszowany</field><field type="IntegerField" name="position">0</field></object><object pk="18" model="toolbar.buttongroup"><field type="CharField" name="name">Dramat współczesny</field><field type="SlugField" name="slug">dramat-wspolczesny</field><field type="IntegerField" name="position">0</field></object><object pk="13" model="toolbar.buttongroup"><field type="CharField" name="name">Elementy początkowe</field><field type="SlugField" name="slug">elementy-poczatkowe</field><field type="IntegerField" name="position">0</field></object><object pk="23" model="toolbar.buttongroup"><field type="CharField" name="name">Mastery</field><field type="SlugField" name="slug">mastery</field><field type="IntegerField" name="position">0</field></object><object pk="1" model="toolbar.buttongroup"><field type="CharField" name="name">Nagłówki</field><field type="SlugField" name="slug">naglowki</field><field type="IntegerField" name="position">0</field></object><object pk="22" model="toolbar.buttongroup"><field type="CharField" name="name">Początek dramatu</field><field type="SlugField" name="slug">poczatek-dramatu</field><field type="IntegerField" name="position">0</field></object><object pk="16" model="toolbar.buttongroup"><field type="CharField" name="name">Polecenia</field><field type="SlugField" name="slug">polecenia</field><field type="IntegerField" name="position">0</field></object><object pk="11" model="toolbar.buttongroup"><field type="CharField" name="name">Strukturalne</field><field type="SlugField" name="slug">strukturalne</field><field type="IntegerField" name="position">0</field></object><object pk="15" model="toolbar.buttongroup"><field type="CharField" name="name">Style znakowe</field><field type="SlugField" name="slug">style-znakowe</field><field type="IntegerField" name="position">0</field></object><object pk="17" model="toolbar.buttongroup"><field type="CharField" name="name">Wersy</field><field type="SlugField" name="slug">wersy</field><field type="IntegerField" name="position">0</field></object><object pk="3" model="toolbar.buttongroup"><field type="CharField" name="name">Widok</field><field type="SlugField" name="slug">display_options</field><field type="IntegerField" name="position">2</field></object><object pk="5" model="toolbar.button"><field type="CharField" name="label">A&lt;sup&gt;+&lt;/sup&gt;</field><field type="SlugField" name="slug">increase_font_size</field><field type="TextField" name="params">({change: 2})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">codemirror_fontsize</field><field type="CharField" name="key">+</field><field type="CharField" name="tooltip">Zwiększ rozmiar czcionki.</field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="3"></object></field></object><object pk="6" model="toolbar.button"><field type="CharField" name="label">A&lt;sup&gt;-&lt;/sup&gt;</field><field type="SlugField" name="slug">descrease_font_size</field><field type="TextField" name="params">({change: -2})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">codemirror_fontsize</field><field type="CharField" name="key">-</field><field type="CharField" name="tooltip">Zmniejsz rozmiar czcionki.</field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="3"></object></field></object><object pk="7" model="toolbar.button"><field type="CharField" name="label">A&lt;sup&gt;=&lt;/sup&gt;</field><field type="SlugField" name="slug">reset_font_size</field><field type="TextField" name="params">({fontSize: 13})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">codemirror_fontsize</field><field type="CharField" name="key">=</field><field type="CharField" name="tooltip">Przywróć orginalny rozmiar czcionki.</field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="3"></object></field></object><object pk="39" model="toolbar.button"><field type="CharField" name="label">akapit</field><field type="SlugField" name="slug">akapit</field><field type="TextField" name="params">({tag:"akap"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="14"></object></field></object><object pk="40" model="toolbar.button"><field type="CharField" name="label">akapit cd.</field><field type="SlugField" name="slug">akapit-cd</field><field type="TextField" name="params">({tag:"akap_cd"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="14"></object></field></object><object pk="41" model="toolbar.button"><field type="CharField" name="label">akapit dialogowy</field><field type="SlugField" name="slug">akapit-dialogowy</field><field type="TextField" name="params">({tag:"akap_dialog"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="14"></object></field></object><object pk="14" model="toolbar.button"><field type="CharField" name="label">akt</field><field type="SlugField" name="slug">akt</field><field type="TextField" name="params">({tag:"akt"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="1"></object></field></object><object pk="32" model="toolbar.button"><field type="CharField" name="label">autor</field><field type="SlugField" name="slug">autor</field><field type="TextField" name="params">({tag:"autor"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="13"></object></field></object><object pk="10" model="toolbar.button"><field type="CharField" name="label">część/księga</field><field type="SlugField" name="slug">czesc</field><field type="TextField" name="params">({tag:"naglowek_czesc"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="1"></object></field></object><object pk="65" model="toolbar.button"><field type="CharField" name="label">dedykacja</field><field type="SlugField" name="slug">dedykacja</field><field type="TextField" name="params">({tag:"dedykacja"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="13"></object></field></object><object pk="74" model="toolbar.button"><field type="CharField" name="label">dedykacja</field><field type="SlugField" name="slug">dedykacja</field><field type="TextField" name="params">({tag:"dedykacja"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="22"></object></field></object><object pk="31" model="toolbar.button"><field type="CharField" name="label">didaskalia</field><field type="SlugField" name="slug">didaskalia</field><field type="TextField" name="params">({tag:"didaskalia"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="12"></object></field></object><object pk="62" model="toolbar.button"><field type="CharField" name="label">didaskalia</field><field type="SlugField" name="slug">didaskalia</field><field type="TextField" name="params">({tag:"didaskalia"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="18"></object></field></object><object pk="49" model="toolbar.button"><field type="CharField" name="label">didaskalia wewn.</field><field type="SlugField" name="slug">didaskalia-wewn</field><field type="TextField" name="params">({tag:"didask_tekst"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="15"></object></field></object><object pk="63" model="toolbar.button"><field type="CharField" name="label">didaskalia wewn.</field><field type="SlugField" name="slug">didaskalia-wewn</field><field type="TextField" name="params">({tag:"didask_tekst"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="18"></object></field></object><object pk="20" model="toolbar.button"><field type="CharField" name="label">dramat wiersz.</field><field type="SlugField" name="slug">dramat-wiersz</field><field type="TextField" name="params">({tag:"dramat_wierszowany_l"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="11"></object></field></object><object pk="22" model="toolbar.button"><field type="CharField" name="label">dramat wiersz./w. łam</field><field type="SlugField" name="slug">dramat-wiersz-w-lam</field><field type="TextField" name="params">({tag:"dramat_wierszowany_lp"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="11"></object></field></object><object pk="21" model="toolbar.button"><field type="CharField" name="label">dramat współczesny</field><field type="SlugField" name="slug">dramat-wspolczesny</field><field type="TextField" name="params">({tag:"dramat_wspolczesny"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="11"></object></field></object><object pk="38" model="toolbar.button"><field type="CharField" name="label">dzieło nadrzędne</field><field type="SlugField" name="slug">dzielo-nadrzedne</field><field type="TextField" name="params">({tag:"dzielo_nadrzedne"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="13"></object></field></object><object pk="67" model="toolbar.button"><field type="CharField" name="label">długi cyt. poet.</field><field type="SlugField" name="slug">dlugi-cyt-poet</field><field type="TextField" name="params">({tag:"poezja_cyt"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="21"></object></field></object><object pk="43" model="toolbar.button"><field type="CharField" name="label">długi cyta. poet.</field><field type="SlugField" name="slug">dlugi-cyt-poet</field><field type="TextField" name="params">({tag:"poezja_cyt"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="14"></object></field></object><object pk="42" model="toolbar.button"><field type="CharField" name="label">długi cytat</field><field type="SlugField" name="slug">dlugi-cytat</field><field type="TextField" name="params">({tag:"dlugi_cyt"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="14"></object></field></object><object pk="66" model="toolbar.button"><field type="CharField" name="label">długi cytat</field><field type="SlugField" name="slug">dlugi-cytat</field><field type="TextField" name="params">dlugi_cytat</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="21"></object></field></object><object pk="52" model="toolbar.button"><field type="CharField" name="label">ekstra</field><field type="SlugField" name="slug">ekstra</field><field type="TextField" name="params">({tag:"ekstra"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="15"></object></field></object><object pk="29" model="toolbar.button"><field type="CharField" name="label">kwestia</field><field type="SlugField" name="slug">kwestia</field><field type="TextField" name="params">({tag:"kwestia"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="12"></object></field></object><object pk="61" model="toolbar.button"><field type="CharField" name="label">kwestia</field><field type="SlugField" name="slug">kwestia</field><field type="TextField" name="params">({tag:"kwestia"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="18"></object></field></object><object pk="23" model="toolbar.button"><field type="CharField" name="label">liryka</field><field type="SlugField" name="slug">liryka</field><field type="TextField" name="params">({tag:"liryka_l"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="11"></object></field></object><object pk="24" model="toolbar.button"><field type="CharField" name="label">liryka/w. łam</field><field type="SlugField" name="slug">liryka-w-lam</field><field type="TextField" name="params">({tag:"liryka_lp"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="11"></object></field></object><object pk="47" model="toolbar.button"><field type="CharField" name="label">mamtemat.</field><field type="SlugField" name="slug">matemat</field><field type="TextField" name="params">({tag:"mat"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="15"></object></field></object><object pk="36" model="toolbar.button"><field type="CharField" name="label">motto</field><field type="SlugField" name="slug">motto</field><field type="TextField" name="params">({tag:"motto"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="13"></object></field></object><object pk="75" model="toolbar.button"><field type="CharField" name="label">motto</field><field type="SlugField" name="slug">motto</field><field type="TextField" name="params">({tag:"motto"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="22"></object></field></object><object pk="37" model="toolbar.button"><field type="CharField" name="label">motto podpis</field><field type="SlugField" name="slug">motto-podpis</field><field type="TextField" name="params">({tag:"motto_podpis"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="13"></object></field></object><object pk="16" model="toolbar.button"><field type="CharField" name="label">nagłówek kwestii</field><field type="SlugField" name="slug">naglowek-kwestii</field><field type="TextField" name="params">({tag:"naglowek_osoba"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="1"></object></field></object><object pk="35" model="toolbar.button"><field type="CharField" name="label">nota</field><field type="SlugField" name="slug">nota</field><field type="TextField" name="params">({tag:"nota"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="13"></object></field></object><object pk="4" model="toolbar.button"><field type="CharField" name="label">Novelpages</field><field type="SlugField" name="slug">novelpages</field><field type="TextField" name="params">({exprs: [\r
-\r
-  ["\\,\\.\\.|\\.\\,\\.|\\.\\.\\,", "..."],\r
-\r
-  ["„", ",,"] /* DOUBLE LOW-9 QUOTATION MARK */\r
-\r
-]})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">lineregexp</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip">Wykonuję operację z novel-pages.</field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="2"></object></field></object><object pk="18" model="toolbar.button"><field type="CharField" name="label">opowiadanie</field><field type="SlugField" name="slug">opowiadanie</field><field type="TextField" name="params">({tag:"opowiadanie"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="11"></object></field></object><object pk="50" model="toolbar.button"><field type="CharField" name="label">osoba</field><field type="SlugField" name="slug">osoba</field><field type="TextField" name="params">({tag:"osoba"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="15"></object></field></object><object pk="64" model="toolbar.button"><field type="CharField" name="label">osoba</field><field type="SlugField" name="slug">osoba</field><field type="TextField" name="params">({tag:"osoba"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="18"></object></field></object><object pk="12" model="toolbar.button"><field type="CharField" name="label">podrozdział</field><field type="SlugField" name="slug">podrozdzial</field><field type="TextField" name="params">({tag:"naglowek_podrozdzial"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="1"></object></field></object><object pk="34" model="toolbar.button"><field type="CharField" name="label">podtytuł</field><field type="SlugField" name="slug">podtytul</field><field type="TextField" name="params">({tag:"podtytul"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="13"></object></field></object><object pk="19" model="toolbar.button"><field type="CharField" name="label">powieść</field><field type="SlugField" name="slug">powiesc</field><field type="TextField" name="params">({tag:"powiesc"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="11"></object></field></object><object pk="68" model="toolbar.button"><field type="CharField" name="label">przypis autorski</field><field type="SlugField" name="slug">przypis-autorski</field><field type="TextField" name="params">({tag:"pa"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="21"></object></field></object><object pk="71" model="toolbar.button"><field type="CharField" name="label">przypis edytorski</field><field type="SlugField" name="slug">przypis-edytorski</field><field type="TextField" name="params">({tag:"pe"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="21"></object></field></object><object pk="70" model="toolbar.button"><field type="CharField" name="label">przypis redaktorski</field><field type="SlugField" name="slug">przypis-redaktorski</field><field type="TextField" name="params">({tag:"pr"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="21"></object></field></object><object pk="69" model="toolbar.button"><field type="CharField" name="label">przypis tłumacza</field><field type="SlugField" name="slug">przypis-tlumacza</field><field type="TextField" name="params">({tag:"pt"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="21"></object></field></object><object pk="11" model="toolbar.button"><field type="CharField" name="label">rozdział</field><field type="SlugField" name="slug">rozdzial</field><field type="TextField" name="params">({tag:"naglowek_rozdzial"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="1"></object></field></object><object pk="15" model="toolbar.button"><field type="CharField" name="label">scena</field><field type="SlugField" name="slug">scena</field><field type="TextField" name="params">({tag:"naglowek_scena"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="1"></object></field></object><object pk="54" model="toolbar.button"><field type="CharField" name="label">sep. asteryks</field><field type="SlugField" name="slug">sep-asteryks</field><field type="TextField" name="params">({tag:"sekcja_asteryks"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="16"></object></field></object><object pk="55" model="toolbar.button"><field type="CharField" name="label">sep. linia</field><field type="SlugField" name="slug">sep-linia</field><field type="TextField" name="params">({tag:"separator_linia"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="16"></object></field></object><object pk="53" model="toolbar.button"><field type="CharField" name="label">sep. światło</field><field type="SlugField" name="slug">sep-swiatlo</field><field type="TextField" name="params">({tag:"sekcja_swiatlo"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="16"></object></field></object><object pk="13" model="toolbar.button"><field type="CharField" name="label">śródtytuł</field><field type="SlugField" name="slug">srodtytul</field><field type="TextField" name="params">({tag:"srodtytul"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="1"></object></field></object><object pk="30" model="toolbar.button"><field type="CharField" name="label">strofa</field><field type="SlugField" name="slug">strofa</field><field type="TextField" name="params">({tag"strofa"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="12"></object></field></object><object pk="57" model="toolbar.button"><field type="CharField" name="label">strofa</field><field type="SlugField" name="slug">strofa</field><field type="TextField" name="params">({tag:"strofa"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="17"></object></field></object><object pk="46" model="toolbar.button"><field type="CharField" name="label">słowo obce</field><field type="SlugField" name="slug">slowo-obce</field><field type="TextField" name="params">({tag:"slowo_obce"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="15"></object></field></object><object pk="17" model="toolbar.button"><field type="CharField" name="label">tagi główne</field><field type="SlugField" name="slug">tagi-glowne</field><field type="TextField" name="params">({tag:"utwor"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="11"></object></field></object><object pk="33" model="toolbar.button"><field type="CharField" name="label">tytuł</field><field type="SlugField" name="slug">tytul</field><field type="TextField" name="params">({tag:"nazwa_utworu"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="13"></object></field></object><object pk="45" model="toolbar.button"><field type="CharField" name="label">tytuł dzieła</field><field type="SlugField" name="slug">tytul-dziela</field><field type="TextField" name="params">({tag:"tytul_dziela"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="15"></object></field></object><object pk="3" model="toolbar.button"><field type="CharField" name="label">Usuń spację</field><field type="SlugField" name="slug">strip_whitespace</field><field type="TextField" name="params">({exprs: [ ["^\\s+|\\s+$", ""], ["\\s+", " "] ]})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">lineregexp</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip">Usuwa zbędne spację z dokumentu.</field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="2"></object></field></object><object pk="51" model="toolbar.button"><field type="CharField" name="label">uwaga</field><field type="SlugField" name="slug">uwaga</field><field type="TextField" name="params">({tag:"uwaga"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="15"></object></field></object><object pk="28" model="toolbar.button"><field type="CharField" name="label">wers akap.</field><field type="SlugField" name="slug">wers-akap</field><field type="TextField" name="params">({tag:"wers_akap"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="12"></object></field></object><object pk="58" model="toolbar.button"><field type="CharField" name="label">wers akap.</field><field type="SlugField" name="slug">wers-akap</field><field type="TextField" name="params">({tag:"wers_akap"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="17"></object></field></object><object pk="26" model="toolbar.button"><field type="CharField" name="label">wers cd.</field><field type="SlugField" name="slug">wers-cd</field><field type="TextField" name="params">({tag:"wers_cd"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="12"></object></field></object><object pk="60" model="toolbar.button"><field type="CharField" name="label">wers cd.</field><field type="SlugField" name="slug">wers-cd</field><field type="TextField" name="params">({tag:"wers_cd"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="17"></object></field></object><object pk="27" model="toolbar.button"><field type="CharField" name="label">wers wcięty</field><field type="SlugField" name="slug">wers-wciety</field><field type="TextField" name="params">({tag:"wers_wciety"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="12"></object></field></object><object pk="59" model="toolbar.button"><field type="CharField" name="label">wers wcięty</field><field type="SlugField" name="slug">wers-wciety</field><field type="TextField" name="params">({tag:"wers_wciety"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="17"></object></field></object><object pk="48" model="toolbar.button"><field type="CharField" name="label">www</field><field type="SlugField" name="slug">www</field><field type="TextField" name="params">({tag:"www"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="15"></object></field></object><object pk="44" model="toolbar.button"><field type="CharField" name="label">wyróżnienie</field><field type="SlugField" name="slug">wyroznienie</field><field type="TextField" name="params">({tag:"wyroznienie"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="15"></object></field></object><object pk="25" model="toolbar.button"><field type="CharField" name="label">wywiad</field><field type="SlugField" name="slug">wywiad</field><field type="TextField" name="params">({tag:"wywiad"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="11"></object></field></object><object pk="73" model="toolbar.button"><field type="CharField" name="label">wywiad odpowiedź</field><field type="SlugField" name="slug">wywiad-odpowiedz</field><field type="TextField" name="params">({tag:"wywiad_odp"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="21"></object></field></object><object pk="72" model="toolbar.button"><field type="CharField" name="label">wywiad pytanie</field><field type="SlugField" name="slug">wywiad-pytanie</field><field type="TextField" name="params">({tag:"wywiad_pyt"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="21"></object></field></object><object pk="2" model="toolbar.button"><field type="CharField" name="label">Zamień dywiz</field><field type="SlugField" name="slug">zamien_dywiz</field><field type="TextField" name="params">({exprs:[ ["—","---"] ]})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">lineregexp</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip">Zamienia '—' na '---'.</field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="2"></object></field></object><object pk="56" model="toolbar.button"><field type="CharField" name="label">zastępnik wersu</field><field type="SlugField" name="slug">zastepnik-wersu</field><field type="TextField" name="params">({tag:"zastepnik_wersu"})</field><field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field><field type="CharField" name="key"></field><field type="CharField" name="tooltip"></field><field to="toolbar.buttongroup" name="group" rel="ManyToManyRel"><object pk="16"></object></field></object><object pk="insert_tag" model="toolbar.scriptlet"><field type="TextField" name="code">$.log(editor, panel, params);\r
-\r
-\r
-\r
-var texteditor = panel.texteditor;\r
-\r
-var text = texteditor.selection();\r
-\r
-texteditor.replaceSelection('&lt;' + params.tag + '&gt;' + text + '&lt;/' + params.tag + '&gt;');\r
-\r
-if (text.length == 0) \r
-\r
-{\r
-\r
-    var pos = texteditor.cursorPosition();\r
-\r
-    texteditor.selectLines(pos.line, pos.character + params.tag.length + 2);\r
-\r
-}\r
-\r
-\r
-\r
-panel.fireEvent('contentChanged');</field></object><object pk="lineregexp" model="toolbar.scriptlet"><field type="TextField" name="code">// params: {exprs: list of {expr: "", repl: "" [, opts: "g"]}}\r
-var cm = panel.texteditor;\r
-\r
-var exprs = $.map(params.exprs, function(expr) {\r
-    var opts = "g";\r
-    if(expr.length &gt; 2)\r
-        opts = expr[2];\r
-    return {rx: new RegExp(expr[0], opts), repl: expr[1]};\r
-});\r
-\r
-var selection = cm.selection();\r
-\r
-if(selection) \r
-{\r
-    var changed = false;\r
-    var lines = selection.split('\n');\r
-    var lines = $.map(lines, function(line) { \r
-        var old_line = line;\r
-        $(exprs).each(function() { \r
-            var expr = this;\r
-            line = line.replace(expr.rx, expr.repl);\r
-        });\r
-        if(old_line != line) changed = true;\r
-        return line;\r
-    });\r
-\r
-    if(changed) {\r
-        cm.replaceSelection( lines.join('\n') );\r
-        panel.fireEvent('contentChanged');\r
-    }\r
-}\r
-else {\r
-    var line = cm.firstLine();\r
-    var hasChanges = false;\r
-    do {\r
-        var content = cm.lineContent(line);    \r
-        var old_content = content;\r
-        $(exprs).each(function() { var expr = this;\r
-            content = content.replace(expr.rx, expr.repl);\r
-        });\r
-        \r
-        if(old_content != content) {\r
-            cm.setLineContent(line, content);\r
-            hasChanges = true;\r
-        }\r
-\r
-        line = cm.nextLine(line);\r
-    } while( !(line === false) );\r
-\r
-    if(hasChanges) panel.fireEvent('contentChanged');\r
-}</field></object><object pk="codemirror_fontsize" model="toolbar.scriptlet"><field type="TextField" name="code">var texteditor = panel.texteditor;\r
-\r
-var frameBody = $('body', $(texteditor.frame).contents());\r
-\r
-\r
-\r
-if(params.fontSize) {\r
-\r
-    frameBody.css('font-size', params.fontSize);\r
-\r
-}\r
-\r
-else {\r
-\r
-    var old_size = parseInt(frameBody.css('font-size'));\r
-\r
-    frameBody.css('font-size', old_size + (params.change || 0) );\r
-\r
-}</field></object></django-objects>\r
+<?xml version="1.0" encoding="utf-8"?>
+<django-objects version="1.0">
+  <object pk="14" model="toolbar.buttongroup">
+    <field type="CharField" name="name">Akapity i długie cytaty</field>
+    <field type="SlugField" name="slug">akapity-i-dlugie-cytaty</field>
+    <field type="IntegerField" name="position">0</field>
+  </object>
+  <object pk="2" model="toolbar.buttongroup">
+    <field type="CharField" name="name">Autokorekta</field>
+    <field type="SlugField" name="slug">autokorekta</field>
+    <field type="IntegerField" name="position">0</field>
+  </object>
+  <object pk="21" model="toolbar.buttongroup">
+    <field type="CharField" name="name">Bloki</field>
+    <field type="SlugField" name="slug">bloki</field>
+    <field type="IntegerField" name="position">0</field>
+  </object>
+  <object pk="20" model="toolbar.buttongroup">
+    <field type="CharField" name="name">Bloki początkowe</field>
+    <field type="SlugField" name="slug">bloki-poczatkowe</field>
+    <field type="IntegerField" name="position">0</field>
+  </object>
+  <object pk="19" model="toolbar.buttongroup">
+    <field type="CharField" name="name">Deklaracje</field>
+    <field type="SlugField" name="slug">deklaracje</field>
+    <field type="IntegerField" name="position">0</field>
+  </object>
+  <object pk="12" model="toolbar.buttongroup">
+    <field type="CharField" name="name">Dramat wierszowany</field>
+    <field type="SlugField" name="slug">dramat-wierszowany</field>
+    <field type="IntegerField" name="position">0</field>
+  </object>
+  <object pk="18" model="toolbar.buttongroup">
+    <field type="CharField" name="name">Dramat współczesny</field>
+    <field type="SlugField" name="slug">dramat-wspolczesny</field>
+    <field type="IntegerField" name="position">0</field>
+  </object>
+  <object pk="13" model="toolbar.buttongroup">
+    <field type="CharField" name="name">Elementy początkowe</field>
+    <field type="SlugField" name="slug">elementy-poczatkowe</field>
+    <field type="IntegerField" name="position">0</field>
+  </object>
+  <object pk="23" model="toolbar.buttongroup">
+    <field type="CharField" name="name">Mastery</field>
+    <field type="SlugField" name="slug">mastery</field>
+    <field type="IntegerField" name="position">0</field>
+  </object>
+  <object pk="1" model="toolbar.buttongroup">
+    <field type="CharField" name="name">Nagłówki</field>
+    <field type="SlugField" name="slug">naglowki</field>
+    <field type="IntegerField" name="position">0</field>
+  </object>
+  <object pk="22" model="toolbar.buttongroup">
+    <field type="CharField" name="name">Początek dramatu</field>
+    <field type="SlugField" name="slug">poczatek-dramatu</field>
+    <field type="IntegerField" name="position">0</field>
+  </object>
+  <object pk="16" model="toolbar.buttongroup">
+    <field type="CharField" name="name">Polecenia</field>
+    <field type="SlugField" name="slug">polecenia</field>
+    <field type="IntegerField" name="position">0</field>
+  </object>
+  <object pk="11" model="toolbar.buttongroup">
+    <field type="CharField" name="name">Strukturalne</field>
+    <field type="SlugField" name="slug">strukturalne</field>
+    <field type="IntegerField" name="position">0</field>
+  </object>
+  <object pk="15" model="toolbar.buttongroup">
+    <field type="CharField" name="name">Style znakowe</field>
+    <field type="SlugField" name="slug">style-znakowe</field>
+    <field type="IntegerField" name="position">0</field>
+  </object>
+  <object pk="17" model="toolbar.buttongroup">
+    <field type="CharField" name="name">Wersy</field>
+    <field type="SlugField" name="slug">wersy</field>
+    <field type="IntegerField" name="position">0</field>
+  </object>
+  <object pk="3" model="toolbar.buttongroup">
+    <field type="CharField" name="name">Widok</field>
+    <field type="SlugField" name="slug">display_options</field>
+    <field type="IntegerField" name="position">2</field>
+  </object>
+  <object pk="5" model="toolbar.button">
+    <field type="CharField" name="label">A&lt;sup&gt;+&lt;/sup&gt;</field>
+    <field type="SlugField" name="slug">increase_font_size</field>
+    <field type="TextField" name="params">({change: 2})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">codemirror_fontsize</field>
+    <field type="CharField" name="key">+</field>
+    <field type="CharField" name="tooltip">Zwiększ rozmiar czcionki.</field>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="3"/>
+    </field>
+  </object>
+  <object pk="6" model="toolbar.button">
+    <field type="CharField" name="label">A&lt;sup&gt;-&lt;/sup&gt;</field>
+    <field type="SlugField" name="slug">descrease_font_size</field>
+    <field type="TextField" name="params">({change: -2})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">codemirror_fontsize</field>
+    <field type="CharField" name="key">-</field>
+    <field type="CharField" name="tooltip">Zmniejsz rozmiar czcionki.</field>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="3"/>
+    </field>
+  </object>
+  <object pk="7" model="toolbar.button">
+    <field type="CharField" name="label">A&lt;sup&gt;=&lt;/sup&gt;</field>
+    <field type="SlugField" name="slug">reset_font_size</field>
+    <field type="TextField" name="params">({fontSize: 13})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">codemirror_fontsize</field>
+    <field type="CharField" name="key">=</field>
+    <field type="CharField" name="tooltip">Przywróć orginalny rozmiar czcionki.</field>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="3"/>
+    </field>
+  </object>
+  <object pk="39" model="toolbar.button">
+    <field type="CharField" name="label">akapit</field>
+    <field type="SlugField" name="slug">akapit</field>
+    <field type="TextField" name="params">({tag:"akap"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="14"/>
+    </field>
+  </object>
+  <object pk="40" model="toolbar.button">
+    <field type="CharField" name="label">akapit cd.</field>
+    <field type="SlugField" name="slug">akapit-cd</field>
+    <field type="TextField" name="params">({tag:"akap_cd"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="14"/>
+    </field>
+  </object>
+  <object pk="41" model="toolbar.button">
+    <field type="CharField" name="label">akapit dialogowy</field>
+    <field type="SlugField" name="slug">akapit-dialogowy</field>
+    <field type="TextField" name="params">({tag:"akap_dialog"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="14"/>
+    </field>
+  </object>
+  <object pk="14" model="toolbar.button">
+    <field type="CharField" name="label">akt</field>
+    <field type="SlugField" name="slug">akt</field>
+    <field type="TextField" name="params">({tag:"akt"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="1"/>
+    </field>
+  </object>
+  <object pk="32" model="toolbar.button">
+    <field type="CharField" name="label">autor</field>
+    <field type="SlugField" name="slug">autor</field>
+    <field type="TextField" name="params">({tag:"autor"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="13"/>
+    </field>
+  </object>
+  <object pk="10" model="toolbar.button">
+    <field type="CharField" name="label">część/księga</field>
+    <field type="SlugField" name="slug">czesc</field>
+    <field type="TextField" name="params">({tag:"naglowek_czesc"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="1"/>
+    </field>
+  </object>
+  <object pk="65" model="toolbar.button">
+    <field type="CharField" name="label">dedykacja</field>
+    <field type="SlugField" name="slug">dedykacja</field>
+    <field type="TextField" name="params">({tag:"dedykacja"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="13"/>
+    </field>
+  </object>
+  <object pk="74" model="toolbar.button">
+    <field type="CharField" name="label">dedykacja</field>
+    <field type="SlugField" name="slug">dedykacja</field>
+    <field type="TextField" name="params">({tag:"dedykacja"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="22"/>
+    </field>
+  </object>
+  <object pk="31" model="toolbar.button">
+    <field type="CharField" name="label">didaskalia</field>
+    <field type="SlugField" name="slug">didaskalia</field>
+    <field type="TextField" name="params">({tag:"didaskalia"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="12"/>
+    </field>
+  </object>
+  <object pk="62" model="toolbar.button">
+    <field type="CharField" name="label">didaskalia</field>
+    <field type="SlugField" name="slug">didaskalia</field>
+    <field type="TextField" name="params">({tag:"didaskalia"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="18"/>
+    </field>
+  </object>
+  <object pk="49" model="toolbar.button">
+    <field type="CharField" name="label">didaskalia wewn.</field>
+    <field type="SlugField" name="slug">didaskalia-wewn</field>
+    <field type="TextField" name="params">({tag:"didask_tekst"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="15"/>
+    </field>
+  </object>
+  <object pk="63" model="toolbar.button">
+    <field type="CharField" name="label">didaskalia wewn.</field>
+    <field type="SlugField" name="slug">didaskalia-wewn</field>
+    <field type="TextField" name="params">({tag:"didask_tekst"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="18"/>
+    </field>
+  </object>
+  <object pk="20" model="toolbar.button">
+    <field type="CharField" name="label">dramat wiersz.</field>
+    <field type="SlugField" name="slug">dramat-wiersz</field>
+    <field type="TextField" name="params">({tag:"dramat_wierszowany_l"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="11"/>
+    </field>
+  </object>
+  <object pk="22" model="toolbar.button">
+    <field type="CharField" name="label">dramat wiersz./w. łam</field>
+    <field type="SlugField" name="slug">dramat-wiersz-w-lam</field>
+    <field type="TextField" name="params">({tag:"dramat_wierszowany_lp"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="11"/>
+    </field>
+  </object>
+  <object pk="21" model="toolbar.button">
+    <field type="CharField" name="label">dramat współczesny</field>
+    <field type="SlugField" name="slug">dramat-wspolczesny</field>
+    <field type="TextField" name="params">({tag:"dramat_wspolczesny"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="11"/>
+    </field>
+  </object>
+  <object pk="38" model="toolbar.button">
+    <field type="CharField" name="label">dzieło nadrzędne</field>
+    <field type="SlugField" name="slug">dzielo-nadrzedne</field>
+    <field type="TextField" name="params">({tag:"dzielo_nadrzedne"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="13"/>
+    </field>
+  </object>
+  <object pk="67" model="toolbar.button">
+    <field type="CharField" name="label">długi cyt. poet.</field>
+    <field type="SlugField" name="slug">dlugi-cyt-poet</field>
+    <field type="TextField" name="params">({tag:"poezja_cyt"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="21"/>
+    </field>
+  </object>
+  <object pk="43" model="toolbar.button">
+    <field type="CharField" name="label">długi cyta. poet.</field>
+    <field type="SlugField" name="slug">dlugi-cyt-poet</field>
+    <field type="TextField" name="params">({tag:"poezja_cyt"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="14"/>
+    </field>
+  </object>
+  <object pk="42" model="toolbar.button">
+    <field type="CharField" name="label">długi cytat</field>
+    <field type="SlugField" name="slug">dlugi-cytat</field>
+    <field type="TextField" name="params">({tag:"dlugi_cyt"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="14"/>
+    </field>
+  </object>
+  <object pk="66" model="toolbar.button">
+    <field type="CharField" name="label">długi cytat</field>
+    <field type="SlugField" name="slug">dlugi-cytat</field>
+    <field type="TextField" name="params">dlugi_cytat</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="21"/>
+    </field>
+  </object>
+  <object pk="52" model="toolbar.button">
+    <field type="CharField" name="label">ekstra</field>
+    <field type="SlugField" name="slug">ekstra</field>
+    <field type="TextField" name="params">({tag:"ekstra"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="15"/>
+    </field>
+  </object>
+  <object pk="29" model="toolbar.button">
+    <field type="CharField" name="label">kwestia</field>
+    <field type="SlugField" name="slug">kwestia</field>
+    <field type="TextField" name="params">({tag:"kwestia"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="12"/>
+    </field>
+  </object>
+  <object pk="61" model="toolbar.button">
+    <field type="CharField" name="label">kwestia</field>
+    <field type="SlugField" name="slug">kwestia</field>
+    <field type="TextField" name="params">({tag:"kwestia"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="18"/>
+    </field>
+  </object>
+  <object pk="23" model="toolbar.button">
+    <field type="CharField" name="label">liryka</field>
+    <field type="SlugField" name="slug">liryka</field>
+    <field type="TextField" name="params">({tag:"liryka_l"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="11"/>
+    </field>
+  </object>
+  <object pk="24" model="toolbar.button">
+    <field type="CharField" name="label">liryka/w. łam</field>
+    <field type="SlugField" name="slug">liryka-w-lam</field>
+    <field type="TextField" name="params">({tag:"liryka_lp"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="11"/>
+    </field>
+  </object>
+  <object pk="47" model="toolbar.button">
+    <field type="CharField" name="label">mamtemat.</field>
+    <field type="SlugField" name="slug">matemat</field>
+    <field type="TextField" name="params">({tag:"mat"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="15"/>
+    </field>
+  </object>
+  <object pk="36" model="toolbar.button">
+    <field type="CharField" name="label">motto</field>
+    <field type="SlugField" name="slug">motto</field>
+    <field type="TextField" name="params">({tag:"motto"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="13"/>
+    </field>
+  </object>
+  <object pk="75" model="toolbar.button">
+    <field type="CharField" name="label">motto</field>
+    <field type="SlugField" name="slug">motto</field>
+    <field type="TextField" name="params">({tag:"motto"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="22"/>
+    </field>
+  </object>
+  <object pk="37" model="toolbar.button">
+    <field type="CharField" name="label">motto podpis</field>
+    <field type="SlugField" name="slug">motto-podpis</field>
+    <field type="TextField" name="params">({tag:"motto_podpis"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="13"/>
+    </field>
+  </object>
+  <object pk="16" model="toolbar.button">
+    <field type="CharField" name="label">nagłówek kwestii</field>
+    <field type="SlugField" name="slug">naglowek-kwestii</field>
+    <field type="TextField" name="params">({tag:"naglowek_osoba"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="1"/>
+    </field>
+  </object>
+  <object pk="35" model="toolbar.button">
+    <field type="CharField" name="label">nota</field>
+    <field type="SlugField" name="slug">nota</field>
+    <field type="TextField" name="params">({tag:"nota"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="13"/>
+    </field>
+  </object>
+  <object pk="4" model="toolbar.button">
+    <field type="CharField" name="label">Novelpages</field>
+    <field type="SlugField" name="slug">novelpages</field>
+    <field type="TextField" name="params">({exprs: [
+
+  ["\\,\\.\\.|\\.\\,\\.|\\.\\.\\,", "..."],
+
+  ["„", ",,"] /* DOUBLE LOW-9 QUOTATION MARK */
+
+]})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">lineregexp</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip">Wykonuję operację z novel-pages.</field>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="2"/>
+    </field>
+  </object>
+  <object pk="18" model="toolbar.button">
+    <field type="CharField" name="label">opowiadanie</field>
+    <field type="SlugField" name="slug">opowiadanie</field>
+    <field type="TextField" name="params">({tag:"opowiadanie"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="11"/>
+    </field>
+  </object>
+  <object pk="50" model="toolbar.button">
+    <field type="CharField" name="label">osoba</field>
+    <field type="SlugField" name="slug">osoba</field>
+    <field type="TextField" name="params">({tag:"osoba"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="15"/>
+    </field>
+  </object>
+  <object pk="64" model="toolbar.button">
+    <field type="CharField" name="label">osoba</field>
+    <field type="SlugField" name="slug">osoba</field>
+    <field type="TextField" name="params">({tag:"osoba"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="18"/>
+    </field>
+  </object>
+  <object pk="12" model="toolbar.button">
+    <field type="CharField" name="label">podrozdział</field>
+    <field type="SlugField" name="slug">podrozdzial</field>
+    <field type="TextField" name="params">({tag:"naglowek_podrozdzial"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="1"/>
+    </field>
+  </object>
+  <object pk="34" model="toolbar.button">
+    <field type="CharField" name="label">podtytuł</field>
+    <field type="SlugField" name="slug">podtytul</field>
+    <field type="TextField" name="params">({tag:"podtytul"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="13"/>
+    </field>
+  </object>
+  <object pk="19" model="toolbar.button">
+    <field type="CharField" name="label">powieść</field>
+    <field type="SlugField" name="slug">powiesc</field>
+    <field type="TextField" name="params">({tag:"powiesc"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="11"/>
+    </field>
+  </object>
+  <object pk="68" model="toolbar.button">
+    <field type="CharField" name="label">przypis autorski</field>
+    <field type="SlugField" name="slug">przypis-autorski</field>
+    <field type="TextField" name="params">({tag:"pa"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="21"/>
+    </field>
+  </object>
+  <object pk="71" model="toolbar.button">
+    <field type="CharField" name="label">przypis edytorski</field>
+    <field type="SlugField" name="slug">przypis-edytorski</field>
+    <field type="TextField" name="params">({tag:"pe"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="21"/>
+    </field>
+  </object>
+  <object pk="70" model="toolbar.button">
+    <field type="CharField" name="label">przypis redaktorski</field>
+    <field type="SlugField" name="slug">przypis-redaktorski</field>
+    <field type="TextField" name="params">({tag:"pr"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="21"/>
+    </field>
+  </object>
+  <object pk="69" model="toolbar.button">
+    <field type="CharField" name="label">przypis tłumacza</field>
+    <field type="SlugField" name="slug">przypis-tlumacza</field>
+    <field type="TextField" name="params">({tag:"pt"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="21"/>
+    </field>
+  </object>
+  <object pk="11" model="toolbar.button">
+    <field type="CharField" name="label">rozdział</field>
+    <field type="SlugField" name="slug">rozdzial</field>
+    <field type="TextField" name="params">({tag:"naglowek_rozdzial"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="1"/>
+    </field>
+  </object>
+  <object pk="15" model="toolbar.button">
+    <field type="CharField" name="label">scena</field>
+    <field type="SlugField" name="slug">scena</field>
+    <field type="TextField" name="params">({tag:"naglowek_scena"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="1"/>
+    </field>
+  </object>
+  <object pk="54" model="toolbar.button">
+    <field type="CharField" name="label">sep. asteryks</field>
+    <field type="SlugField" name="slug">sep-asteryks</field>
+    <field type="TextField" name="params">({tag:"sekcja_asteryks"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="16"/>
+    </field>
+  </object>
+  <object pk="55" model="toolbar.button">
+    <field type="CharField" name="label">sep. linia</field>
+    <field type="SlugField" name="slug">sep-linia</field>
+    <field type="TextField" name="params">({tag:"separator_linia"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="16"/>
+    </field>
+  </object>
+  <object pk="53" model="toolbar.button">
+    <field type="CharField" name="label">sep. światło</field>
+    <field type="SlugField" name="slug">sep-swiatlo</field>
+    <field type="TextField" name="params">({tag:"sekcja_swiatlo"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="16"/>
+    </field>
+  </object>
+  <object pk="13" model="toolbar.button">
+    <field type="CharField" name="label">śródtytuł</field>
+    <field type="SlugField" name="slug">srodtytul</field>
+    <field type="TextField" name="params">({tag:"srodtytul"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="1"/>
+    </field>
+  </object>
+  <object pk="30" model="toolbar.button">
+    <field type="CharField" name="label">strofa</field>
+    <field type="SlugField" name="slug">strofa</field>
+    <field type="TextField" name="params">({tag"strofa"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="12"/>
+    </field>
+  </object>
+  <object pk="57" model="toolbar.button">
+    <field type="CharField" name="label">strofa</field>
+    <field type="SlugField" name="slug">strofa</field>
+    <field type="TextField" name="params">({tag:"strofa"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="17"/>
+    </field>
+  </object>
+  <object pk="46" model="toolbar.button">
+    <field type="CharField" name="label">słowo obce</field>
+    <field type="SlugField" name="slug">slowo-obce</field>
+    <field type="TextField" name="params">({tag:"slowo_obce"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="15"/>
+    </field>
+  </object>
+  <object pk="17" model="toolbar.button">
+    <field type="CharField" name="label">tagi główne</field>
+    <field type="SlugField" name="slug">tagi-glowne</field>
+    <field type="TextField" name="params">({tag:"utwor"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="11"/>
+    </field>
+  </object>
+  <object pk="33" model="toolbar.button">
+    <field type="CharField" name="label">tytuł</field>
+    <field type="SlugField" name="slug">tytul</field>
+    <field type="TextField" name="params">({tag:"nazwa_utworu"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="13"/>
+    </field>
+  </object>
+  <object pk="45" model="toolbar.button">
+    <field type="CharField" name="label">tytuł dzieła</field>
+    <field type="SlugField" name="slug">tytul-dziela</field>
+    <field type="TextField" name="params">({tag:"tytul_dziela"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="15"/>
+    </field>
+  </object>
+  <object pk="3" model="toolbar.button">
+    <field type="CharField" name="label">Usuń spację</field>
+    <field type="SlugField" name="slug">strip_whitespace</field>
+    <field type="TextField" name="params">({exprs: [ ["^\\s+|\\s+$", ""], ["\\s+", " "] ]})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">lineregexp</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip">Usuwa zbędne spację z dokumentu.</field>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="2"/>
+    </field>
+  </object>
+  <object pk="51" model="toolbar.button">
+    <field type="CharField" name="label">uwaga</field>
+    <field type="SlugField" name="slug">uwaga</field>
+    <field type="TextField" name="params">({tag:"uwaga"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="15"/>
+    </field>
+  </object>
+  <object pk="28" model="toolbar.button">
+    <field type="CharField" name="label">wers akap.</field>
+    <field type="SlugField" name="slug">wers-akap</field>
+    <field type="TextField" name="params">({tag:"wers_akap"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="12"/>
+    </field>
+  </object>
+  <object pk="58" model="toolbar.button">
+    <field type="CharField" name="label">wers akap.</field>
+    <field type="SlugField" name="slug">wers-akap</field>
+    <field type="TextField" name="params">({tag:"wers_akap"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="17"/>
+    </field>
+  </object>
+  <object pk="26" model="toolbar.button">
+    <field type="CharField" name="label">wers cd.</field>
+    <field type="SlugField" name="slug">wers-cd</field>
+    <field type="TextField" name="params">({tag:"wers_cd"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="12"/>
+    </field>
+  </object>
+  <object pk="60" model="toolbar.button">
+    <field type="CharField" name="label">wers cd.</field>
+    <field type="SlugField" name="slug">wers-cd</field>
+    <field type="TextField" name="params">({tag:"wers_cd"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="17"/>
+    </field>
+  </object>
+  <object pk="27" model="toolbar.button">
+    <field type="CharField" name="label">wers wcięty</field>
+    <field type="SlugField" name="slug">wers-wciety</field>
+    <field type="TextField" name="params">({tag:"wers_wciety"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="12"/>
+    </field>
+  </object>
+  <object pk="59" model="toolbar.button">
+    <field type="CharField" name="label">wers wcięty</field>
+    <field type="SlugField" name="slug">wers-wciety</field>
+    <field type="TextField" name="params">({tag:"wers_wciety"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="17"/>
+    </field>
+  </object>
+  <object pk="48" model="toolbar.button">
+    <field type="CharField" name="label">www</field>
+    <field type="SlugField" name="slug">www</field>
+    <field type="TextField" name="params">({tag:"www"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="15"/>
+    </field>
+  </object>
+  <object pk="44" model="toolbar.button">
+    <field type="CharField" name="label">wyróżnienie</field>
+    <field type="SlugField" name="slug">wyroznienie</field>
+    <field type="TextField" name="params">({tag:"wyroznienie"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="15"/>
+    </field>
+  </object>
+  <object pk="25" model="toolbar.button">
+    <field type="CharField" name="label">wywiad</field>
+    <field type="SlugField" name="slug">wywiad</field>
+    <field type="TextField" name="params">({tag:"wywiad"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="11"/>
+    </field>
+  </object>
+  <object pk="73" model="toolbar.button">
+    <field type="CharField" name="label">wywiad odpowiedź</field>
+    <field type="SlugField" name="slug">wywiad-odpowiedz</field>
+    <field type="TextField" name="params">({tag:"wywiad_odp"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="21"/>
+    </field>
+  </object>
+  <object pk="72" model="toolbar.button">
+    <field type="CharField" name="label">wywiad pytanie</field>
+    <field type="SlugField" name="slug">wywiad-pytanie</field>
+    <field type="TextField" name="params">({tag:"wywiad_pyt"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="21"/>
+    </field>
+  </object>
+  <object pk="2" model="toolbar.button">
+    <field type="CharField" name="label">Zamień dywiz</field>
+    <field type="SlugField" name="slug">zamien_dywiz</field>
+    <field type="TextField" name="params">({exprs:[ ["—","---"] ]})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">lineregexp</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip">Zamienia '—' na '---'.</field>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="2"/>
+    </field>
+  </object>
+  <object pk="56" model="toolbar.button">
+    <field type="CharField" name="label">zastępnik wersu</field>
+    <field type="SlugField" name="slug">zastepnik-wersu</field>
+    <field type="TextField" name="params">({tag:"zastepnik_wersu"})</field>
+    <field to="toolbar.scriptlet" name="scriptlet" rel="ManyToOneRel">insert_tag</field>
+    <field type="CharField" name="key"/>
+    <field type="CharField" name="tooltip"/>
+    <field to="toolbar.buttongroup" name="group" rel="ManyToManyRel">
+      <object pk="16"/>
+    </field>
+  </object>
+  <object pk="insert_tag" model="toolbar.scriptlet">
+    <field type="TextField" name="code">$.log(editor, panel, params);
+
+
+
+var texteditor = panel.texteditor;
+
+var text = texteditor.selection();
+
+texteditor.replaceSelection('&lt;' + params.tag + '&gt;' + text + '&lt;/' + params.tag + '&gt;');
+
+if (text.length == 0) 
+
+{
+
+    var pos = texteditor.cursorPosition();
+
+    texteditor.selectLines(pos.line, pos.character + params.tag.length + 2);
+
+}
+
+
+
+panel.fireEvent('contentChanged');</field>
+  </object>
+  <object pk="lineregexp" model="toolbar.scriptlet">
+    <field type="TextField" name="code">// params: {exprs: list of {expr: "", repl: "" [, opts: "g"]}}
+var cm = panel.texteditor;
+
+var exprs = $.map(params.exprs, function(expr) {
+    var opts = "g";
+    if(expr.length &gt; 2)
+        opts = expr[2];
+    return {rx: new RegExp(expr[0], opts), repl: expr[1]};
+});
+
+var selection = cm.selection();
+
+if(selection) 
+{
+    var changed = false;
+    var lines = selection.split('\n');
+    var lines = $.map(lines, function(line) { 
+        var old_line = line;
+        $(exprs).each(function() { 
+            var expr = this;
+            line = line.replace(expr.rx, expr.repl);
+        });
+        if(old_line != line) changed = true;
+        return line;
+    });
+
+    if(changed) {
+        cm.replaceSelection( lines.join('\n') );
+        panel.fireEvent('contentChanged');
+    }
+}
+else {
+    var line = cm.firstLine();
+    var hasChanges = false;
+    do {
+        var content = cm.lineContent(line);    
+        var old_content = content;
+        $(exprs).each(function() { var expr = this;
+            content = content.replace(expr.rx, expr.repl);
+        });
+        
+        if(old_content != content) {
+            cm.setLineContent(line, content);
+            hasChanges = true;
+        }
+
+        line = cm.nextLine(line);
+    } while( !(line === false) );
+
+    if(hasChanges) panel.fireEvent('contentChanged');
+}</field>
+  </object>
+  <object pk="codemirror_fontsize" model="toolbar.scriptlet">
+    <field type="TextField" name="code">var texteditor = panel.texteditor;
+
+var frameBody = $('body', $(texteditor.frame).contents());
+
+
+
+if(params.fontSize) {
+
+    frameBody.css('font-size', params.fontSize);
+
+}
+
+else {
+
+    var old_size = parseInt(frameBody.css('font-size'));
+
+    frameBody.css('font-size', old_size + (params.change || 0) );
+
+}</field>
+  </object>
+</django-objects>
index 31d811b..2eaf801 100644 (file)
@@ -9,10 +9,10 @@ body {
     position: absolute;
     padding: 0.2em 0.5em;
     background-color: #CDCDCD;
-       border-bottom: 0.1px solid black;
-       height: 1.8em;
-       line-height: 1.8em;
-       vertical-align: center;
+    border-bottom: 0.1px solid black;
+    height: 1.8em;
+    line-height: 1.8em;
+    vertical-align: middle;
 
     top: 0px; left: 0px; right: 0px; 
     z-index: 300;
@@ -22,12 +22,12 @@ body {
 }
 
 #header-right-toolbar {
-       position: absolute;
-       right: 1em;
+    position: absolute;
+    right: 1em;
 }
 
 #header button {
-       vertical-align: center;
+    vertical-align: middle;
 }
 
 #content {
@@ -107,53 +107,53 @@ label {
 /* ========== */
 
 #panels {
-       position: absolute;
-       bottom: 0px; left: 0px; right: 0px; top: 0px;
+    position: absolute;
+    bottom: 0px; left: 0px; right: 0px; top: 0px;
 }
 
 .panel-wrap {
     overflow: hidden;
-       position: absolute; /* absolute to relation with #panels */
-       top: 0px;
-       bottom: 0px;
+    position: absolute; /* absolute to relation with #panels */
+    top: 0px;
+    bottom: 0px;
 }
 
 #left-panel-wrap {
-       left: 0px;
-       width: 8px; /* initial width */
+    left: 0px;
+    width: 8px; /* initial width */
 }
 
 #right-panel-wrap {
-       right: 0px;
-       width: auto;
-       left: 8px; /* initial width of the left panel */
+    right: 0px;
+    width: auto;
+    left: 8px; /* initial width of the left panel */
 }
 
 /* contents */
 .panel-content {
-       position: absolute;
-       overflow: auto;
-       overflow-x: hidden;
-       top: 22px; left: 0px; bottom:0px; right: 0px;
+    position: absolute;
+    overflow: auto;
+    overflow-x: hidden;
+    top: 25px; left: 0px; bottom:0px; right: 0px;
 }
 
 .panel-overlay {
-       position: absolute;
-       top: 0px; bottom: 0px; left: 0px; right: 0px;
-       z-index: 100;
-       background: gray;
-       opacity: 0.8;
-       text-align: center;
-       overflow: hidden;
-       display: none;
-       cursor: col-resize;
+    position: absolute;
+    top: 0px; bottom: 0px; left: 0px; right: 0px;
+    z-index: 100;
+    background: gray;
+    opacity: 0.8;
+    text-align: center;
+    overflow: hidden;
+    display: none;
+    cursor: col-resize;
 }
 
 .panel-content-overlay {
 }
 
 .panel-wrap.last-panel .panel-content {
-       right: 0px;
+    right: 0px;
 }
 
 .panel-wrap.last-panel .panel-slider {
@@ -163,7 +163,7 @@ label {
 /* Toolbars with select box to change panel contents*/
 .panel-toolbar {
     position: absolute;
-    top: 0px; left:0px; right: 0px; height: 20px;
+    top: 0px; left:0px; right: 0px; height: 24px;
 
     padding: 0 0 2px 0;
     /* border-top: 1px solid #AAA; */
@@ -185,7 +185,7 @@ label {
 /* Slider between panels */
 .panel-wrap .panel-slider {
     position: absolute;
-       background-color: #DDD;
+    background-color: #DDD;
 
     top: 0px; bottom: 0px; right: 0px; width: 4px;
 
@@ -194,8 +194,8 @@ label {
     border-top: none;
     border-bottom: none;
 
-       z-index: 90;
-       cursor: col-resize;
+    z-index: 90;
+    cursor: col-resize;
 }
 
 .panel-wrap .panel-slider:hover {
@@ -203,7 +203,7 @@ label {
 }
 
 .panel-content-overlay.panel-wrap .panel-slider {
-       background-color: #DDD;
+    background-color: #DDD;
 }
 
 
@@ -268,16 +268,16 @@ label {
 }
 
 div.isection {
-       margin: 1em auto;
-       border: 1px solid black;
-       padding: 0.5em 2em;
-       background: #9f9ffa;
+    margin: 1em auto;
+    border: 1px solid black;
+    padding: 0.5em 2em;
+    background: #9f9ffa;
 
-       width: 60%;
+    width: 60%;
 }
 
 div.isection p {
-       margin: 0.5em 1em;
+    margin: 0.5em 1em;
 }
 
 .change-notification {
@@ -286,7 +286,7 @@ div.isection p {
 
 /*
  * Popups
- */
+*/
 #message-box {
     position: fixed;
     top: 2px;
index 71940eb..f38f4dd 100644 (file)
@@ -25,6 +25,7 @@
     border: none;
     padding: 2pt 0.5em;
     background: #AAA;
+    font-family: Sans-Serif;
 }
 
 .toolbar div {