Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author bozdoz

    (@bozdoz)

    Could do a test on the selection:

    var is_blockquote = window.getSelection().baseNode.parentNode.nodeName == 'BLOCKQUOTE';
    
    if (is_blockquote) return;

    Could do something like that in the quote-tweet.js plugin file: in the function getTextSelection.

    Plugin Author bozdoz

    (@bozdoz)

    Might not work great though. You might have to iterate all of the parent nodes to see if any of them are blockquotes.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Restrict the plugin only on blockquotes’ is closed to new replies.