Comma's causing issues in Showtext.

  • I'm having issues with commas inside of the showtext plugin. Even when using single quotes around the text, it still errors out after the first comma in the HTML5 and Flash version.

    Current code:

    Code
    <hotspot name="climate" 
        url="../../../img/d/locations/pins/min/climate.png"  
        style="tooltip" 
        ath="-30" 
        atv="-40" 
        onhover="showtext('[h4]Climate: [/h4]Enjoy all four season in the Poconos, especially brilliant falls and white winters.', main);" 
    />

    krpano v1.18.4
    showtext() v1.18

  • Hi,

    thanks, this is a known bug in the showtext.xml (missing quotes) and will be fixed in the next release.

    To fix it manually edit the showtext.xml and change this line:

    Code
    set(showtext, action(showtext_xml,%%1,%%2) );

    to this:

    Code
    set(showtext, action(showtext_xml,'%%1','%%2') );

    and this line:

    Code
    set(showtext_text, %1);

    to this:

    Code
    set(showtext_text, '%1');

    Best regards,
    Klaus

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!