The best solution is for the resize mod to update and use hook location
bbcode_img_match in order to do all of its replacements. This would work for any mod that uses the BB-Code parser, without having to handle each content type separately.
Until then, however, as far as I can tell the only way to make this work in the Lite version would be to put a plugin at hook
bbcode_parse_start:
Code:
if (isset($this->recursion) AND $parsedhasimages)
{
$parsedtext = '';
}
And a plugin at
bbcode_parse_complete that does the necessary text replacement.
In the full version, you could just use the hook
vault_postbit_complete to perform your text replacement rather than hack the parser in this way.