[ticket/11915] Replace inline onclick event for inserting attachment bbcodes.

PHPBB3-11915