Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

Categories

In this Discussion

Who's Online 13

CurtisOdenericgillettepehja +10 guests

QuoteSelection and vanilla 2.0.18

This discussion is related to the Quote selection addon.
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

  • Posts: 102
    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";

Sign In or Register to comment.