Please upgrade here. These earlier versions are no longer being updated and have security issues.

QuoteSelection and vanilla 2.0.18

This discussion is related to the Quote selection addon.
tmilovantmilovan New
edited July 2011 in Vanilla 2.0 - 2.8
Quote selection and Quotes plugins stopped working after upgrade to 2.0.18. After quoting browser is focused on textarea but string is not carried over.

I have managed to catch an js error that shows after unsucessful quoting:

/forum/plugins/QuoteSelection/quoteselection.js:77

or

/forum/plugins/QuoteSelection/quoteselection.js:96 in latest version of plugin.

"TypeError: Result of expression 'quoteData.url' [undefined] is not an object."
Tagged:

Comments

  • Ok, I have found that the problem is manifesting when using Markdown input formater.
    Problem is in the line 96 of the /plugins/QuoteSelection/quoteselection.js file:

    url = quoteData.url.replace(/^https?:\/\/[^\/]*/, '');
    return "> [" + title + "](" + url + "): " +
    quoteData.text.replace("\r", "").replace(/\n{2,}/gm, "\n\n>") +
    "\n\n";

    but if we skip domain trimming everything works fine:

    //url = quoteData.url.replace(/^https?:\/\/[^\/]*/, '');
    return "> [" + title + "](" + quoteData.url + "): " +
    quoteData.text.replace("\r", "").replace(/\n{2,}/gm, "\n\n>") +
    "\n\n";

  • I can't get this to work with 2.0.18. Quote button does not appear at all.

    -k0nsl

Sign In or Register to comment.