Viewing 15 replies - 1 through 15 (of 18 total)
  • Thread Starter pixeldynamo

    (@pixeldynamo)

    I’ve spent some time this afternoon producing a fix, you can add this to the patterns listed in ginger-tag-remover.php and it will once again find and replace tags polluting the HTML. Just paste it in below line 37.

    array_push($gtr_patern_array,array(‘pattern’=>’#\<span class\=\\\”GINGER_SOFTWARE_mark\\\” id=\\\”[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}\\\”\>(.*?)\<\/span\>#m’,’replace’=>’$1′));

    Plugin Author jlisnic

    (@jlisnic)

    Fixed in version 0.0.3.

    Tnx

    Does this still work?

    Thread Starter pixeldynamo

    (@pixeldynamo)

    Not sure if Jilsnic is maintaining it, but a recent Ginger update broke the format once again.

    It’s easily fixed though, replace the regexes with this:

    $gtr_patern_array=array();
    	array_push($gtr_patern_array,array('pattern'=>'#\<span class\=\\\"GINGER_SOFATWARE_noSuggestion GINGER_SOFATWARE_correct\\\"\>(.*?)\<\/span\>#m','replace'=>'$1'));
    	array_push($gtr_patern_array,array('pattern'=>'#\<span class\=\\\"GINGER_SOFATWARE_noSuggestion GINGER_SOFATWARE_correct\\\"\>(.*?)\<\/span\>#m','replace'=>'$1'));
    	array_push($gtr_patern_array,array('pattern'=>'#\<span id=\\\"[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}\\\" class\=\\\"GINGER_SOFTWARE_mark\\\"\>(.*?)\<\/span\>#m','replace'=>'$1'));
    	array_push($gtr_patern_array,array('pattern'=>'#\<span class\=\\\"GINGER_SOFTWARE_mark\\\" id=\\\"[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}\\\"\>(.*?)\<\/span\>#m','replace'=>'$1'));
    	array_push($gtr_patern_array,array('pattern'=>'#\<span class\=\\\"GINGER_SOFATWARE_correct\\\"\>(.*?)\<\/span\>#m','replace'=>'$1'));
    	array_push($gtr_patern_array,array('pattern'=>'#\<span class\=\\\"GINGER_SOFATWARE_spelling\\\"\>(.*?)\<\/span\>#m','replace'=>'$1'));

    To catch all known formats of the tag.

    Replace the what with this?

    Thnx…

    Thread Starter pixeldynamo

    (@pixeldynamo)

    lines 33-37 of ginger-tag-remover.php

    And this works, does it… WOW, many thanks indeed ??

    Thread Starter pixeldynamo

    (@pixeldynamo)

    If there’s no update in a couple of weeks I’ll consider offering an alternative plugin, but don’t want to steal Jilsnic’s thunder.

    Thread Starter pixeldynamo

    (@pixeldynamo)

    If there’s no update in a couple of weeks I’ll consider offering an alternative plugin, but don’t want to steal Jilsnic’s thunder.

    Nope… Doesn’t work…

    Thread Starter pixeldynamo

    (@pixeldynamo)

    Odd, works fine here! Paste the contents of the modified file to pastebin and share the link here. I’ll take a look.

    Is there somewhere private I can send it? Thanks ??

    Thread Starter pixeldynamo

    (@pixeldynamo)

    Sure, create a private pastie and send the link via the contact form on my site (linked from my profile).

    Send the lot via you site… Thnx

    Thread Starter pixeldynamo

    (@pixeldynamo)

    Ok, so it’s probably worth me making sure it does what you expect first.

    The Ginger plugin for chrome adds all of that garbage to the HTML, visible when you swing in to ‘text’ view from the editor.

    The plugin strips those tags every time you save a post, either by saving a new draft, publishing, or re-publishing. It can’t prevent the tags appearing in the first place, that’s the fault of Ginger and would require a change to TinyMCE.

    So if you’ve installed the plugin, it’s the plugin file that needs to be edited, to detect the change Ginger has made to their tag.

    Are you able to edit the files on the server, via FTP or similar?

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Doesn't work with update to Ginger’ is closed to new replies.