• I’m attempting to add custom javascript functionaliy for the print icon. In the custom button field of the admin panel, I enter the follow code:

    print.png | javascript:window.open(“%url%”);window.print(); | 800×1000

    On saving changes, trackable social share icons automatically inserts escape characters before the quotation marks. On saving, the code is changed to:

    print.png | javascript:window.open(\”%url%\”);window.print(); | 800×1000

    On saving again:

    print.png | javascript:window.open(\\\”%url%\\\”);window.print(); | 800×1000

    And again:

    print.png | javascript:window.open(\\\\\\\”%url%\\\\\\\”);window.print(); | 800×1000

    This both causes the window.open functionality to not work, and will lead to some very lengthy code after a few more saves. Does anyone know how I can stop this behaviour…and perhaps TSSI, you should file this as a bug 🙂

    http://wordpress.org/extend/plugins/trackable-social-share-icons/

  • The topic ‘[Plugin: Trackable Social Share Icons] Adding escape characters to javascript’ is closed to new replies.