Fix theme box.
authorRadek Czajka <rczajka@rczajka.pl>
Tue, 10 Nov 2020 08:51:48 +0000 (09:51 +0100)
committerRadek Czajka <rczajka@rczajka.pl>
Tue, 10 Nov 2020 08:51:48 +0000 (09:51 +0100)
src/redakcja/static/js/wiki/view_editor_wysiwyg.js
src/redakcja/static/js/wiki/xslt.js
src/redakcja/static/xsl/wl2html_client.xsl

index c1c9f6f..72e218a 100644 (file)
         var w = $box.outerWidth();
         var h = $box.innerHeight();
 
-        if ($origin.is(".annotation-inline-box") | $origin.is('*[x-edit-no-format]')) {
+        if ($origin.is(".annotation-inline-box") | $origin.is('.reference-inline-box')) {
             w = Math.max(w, 400);
             h = Math.max(h, 60);
             if($('.htmlview div').offset().left + $('.htmlview div').width() > ($('.vsplitbar').offset().left - 480)){
index 06228cd..9da4e11 100644 (file)
@@ -17,7 +17,7 @@ function withStylesheets(code_block, onError)
     if (!xml2htmlStylesheet) {
        $.blockUI({message: 'Ładowanie arkuszy stylów...'});
        $.ajax({
-               url: STATIC_URL + 'xsl/wl2html_client.xsl?20201106',
+               url: STATIC_URL + 'xsl/wl2html_client.xsl?20201110',
                dataType: 'xml',
                timeout: 10000,
                success: function(data) {
index 51ea70f..b359e91 100644 (file)
     </xsl:template>
 
     <xsl:template match="ref">
-        <span x-editable="true" x-common="common" x-edit-no-format="true" x-edit-attribute="href">
-            <xsl:call-template name="standard-attributes"/>
-            <a class="reference">📌</a>
-        </span>
+      <span x-editable="true" x-common="common" x-edit-no-format="true" x-edit-attribute="href">
+        <xsl:call-template name="standard-attributes">
+          <xsl:with-param name="extra-class" select="'reference-inline-box'" />
+        </xsl:call-template>
+        <a class="reference">📌</a>
+      </span>
     </xsl:template>
     
     <xsl:template match="begin">