Skip to content

Instantly share code, notes, and snippets.

@anevins12
Created November 13, 2015 14:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anevins12/a950645e4ac18f64d79f to your computer and use it in GitHub Desktop.
Save anevins12/a950645e4ac18f64d79f to your computer and use it in GitHub Desktop.
// Add the trigger link
// $username = Take everything from the last '/' from the profile link
// On click of the trigger
// $post_content = Grab the contents of the textarea
// $post_content = $post_content + ' @' + $username;
// Add and replace the old post_content with the new in the Textarea
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment