Quote plugin
-
@HolyPhoenix I know how to quote, it's when you want to quote large outside news sources...etc. This is why I was wondering if someone had a plugin that adds a button in the composer...
-
@Giggiux A button in the composer which will quote a particular text, just like when you quote someone who posts in a topic.
Like this: article from yahoo
Brady: My mom thinks I'm the fastest person on the field
Moms just see their kids differently, right? Perfect, without flaws and better than the other kids. That’s the way it should be.It’s the same with Tom Brady and his mother. Mrs. Brady loves her son dearly, we’re certain, and the New England Patriots quarterback confirmed that on Wednesday when asked about a key scramble against the Pittsburgh Steelers — with the auspice of knowing, well, the dude is as slow as a sloth.
“Don’t tell my mom that,” Brady said. “She would totally disagree with that. She thinks I’m very fast. She’ll say, ‘I think you’re the fastest person on the field.’ I say, ‘Mom, you’re crazy. There’s no way.’ That’s moms.”
-
@torn2 Well then pay someone to get it done. Contact the NodeBB team [email protected]
-
@pichalite Yea, that's why I asked first to see if someone had done one. Maybe I can try, but i'll probably burn my site down...
Does this look OK?
$('document').ready(function() { require(['composer', 'composer/controls'], function(composer, controls) { composer.addButton('fa fa-quote-right', function(textarea, selectionStart, selectionEnd) { if (selectionStart === selectionEnd) { controls.insertIntoTextarea(textarea, '@Username / Website said:\n> '); controls.updateTextareaSelection(textarea, selectionStart + 4, selectionStart + 20); } else { controls.wrapSelectionInTextareaWith(textarea, '@Username / Website said:\n> ', '\n\n'); controls.updateTextareaSelection(textarea, selectionStart + 4, selectionEnd + 4); } }); }); });