WYSIWYG for subscript tag
authorJan Szejko <janek37@gmail.com>
Fri, 30 Jun 2017 13:11:37 +0000 (15:11 +0200)
committerJan Szejko <janek37@gmail.com>
Fri, 30 Jun 2017 13:11:37 +0000 (15:11 +0200)
apps/toolbar/fixtures/initial_toolbar.yaml
redakcja/static/xsl/wl2html_client.xsl

index 52799ff..c70180e 100644 (file)
         tooltip: ''
     model: toolbar.button
     pk: 48
+-   fields:
+        accesskey: ''
+        group: [15]
+        label: indeks dolny
+        link: ''
+        params: '{"tag": "indeks_dolny"}'
+        scriptlet: insert_tag
+        slug: indeks-dolny
+        tooltip: ''
+    model: toolbar.button
+    pk: 49
 -   fields:
         accesskey: ''
         group: [29]
index f5f4e04..b6029db 100644 (file)
         </em>
     </xsl:template>
 
+    <xsl:template match="indeks_dolny">
+        <xsl:param name="mixed" />
+        <sub>
+            <xsl:call-template name="standard-attributes" />
+            <xsl:apply-templates select="child::node()">
+                <xsl:with-param name="mixed" select="true()" />
+            </xsl:apply-templates>
+        </sub>
+    </xsl:template>
+
     <!--
         **********
         SEPARATORY