tinyMCE-mention icon indicating copy to clipboard operation
tinyMCE-mention copied to clipboard

Uncaught TypeError: rbuggyQSA.test is not a function at Function.Sizzle

Open PatmanAA opened this issue 8 years ago • 3 comments

I use tinymce with mention plugin in yii, When I enter @ my list box is geting fill with my source so it's all good but in chrome debuger I get this error:

Uncaught TypeError: rbuggyQSA.test is not a function at Function.Sizzle [as find] (jquery.js?v=1504808392:818) at jQuery.fn.init.find (jquery.js?v=1504808392:2792) at jQuery.fn.init (jquery.js?v=1504808392:2909) at jQuery (jquery.js?v=1504808392:75) at HTMLDocument. (index.php?r=space%2Fspace&sguid=4bcfe53f-6d04-40e1-8f35-d733a6247f82:166) at HTMLDocument.dispatch (jquery.js?v=1504808392:4737) at HTMLDocument.elemData.handle (jquery.js?v=1504808392:4549) at jquery.js?v=1504808392:1189 at assert (jquery.js?v=1504808392:909) at Sizzle.setDocument (jquery.js?v=1504808392:1183)

Any cue? Thanks Pat

PatmanAA avatar Sep 13 '17 13:09 PatmanAA

Hi @PatmanAA,

Can't really tell what the problem might be... The stacktrace doesn't contain anything about the mention plugin.

Do you know where the rbuggyQSA.test function comes from?

StevenDevooght avatar Sep 14 '17 06:09 StevenDevooght

Hi Steven,

The error is in :

  • jQuery JavaScript Library v2.2.4
  • http://jquery.com/
  • Includes Sizzle.js
  • http://sizzlejs.com/
  • Copyright jQuery Foundation and other contributors
  • Released under the MIT license
  • http://jquery.org/license
  • Date: 2016-05-20T17:23Z

At line 818:

		// Take advantage of querySelectorAll
		if ( support.qsa &&
			!compilerCache[ selector + " " ] &&
		----->>>>	(!rbuggyQSA || !rbuggyQSA.test( selector )) ) 

PatmanAA avatar Sep 14 '17 12:09 PatmanAA

Hi, I haven't tested my plugin with jQuery v2.2.4. That could be the problem... Can you test with an older version of jQuery (e.g v1.8.3)?

StevenDevooght avatar Sep 15 '17 06:09 StevenDevooght