OctoDev Posted March 13, 2016 Posted March 13, 2016 I have rarely luck using it. When I try to tag someone it doesn't allow me to, nothing appears.. I notice it only works when you type the @ then wait a few seconds, is this something that could be done faster? lol
Colonel_mortis Posted March 13, 2016 Posted March 13, 2016 What browser are you using? Some people have had problems with it in Firefox, myself included, but for me it seems to be working now, which is really weird.
OctoDev Posted March 13, 2016 Author Posted March 13, 2016 1 hour ago, Colonel_mortis said: What browser are you using? Some people have had problems with it in Firefox, myself included, but for me it seems to be working now, which is really weird. Google Chrome. Did you try typing @ then wait a few seconds, then type a letter.. that seems to work for me now.
Morrigan Posted March 13, 2016 Posted March 13, 2016 When I have problems with tagging normally I hard refresh (CTRL+F5) and it fixes it. I don't have problems though. @Jimmy Gavekort
Colonel_mortis Posted March 13, 2016 Posted March 13, 2016 1 hour ago, Jimmy Gavekort said: Google Chrome. Did you try typing @ then wait a few seconds, then type a letter.. that seems to work for me now. It just works normally for me at the moment. If you open the dev console (F12 -> console tab), is anything logged when you try to tag?
Joel R Posted March 13, 2016 Posted March 13, 2016 3 hours ago, Jimmy Gavekort said: Google Chrome. Did you try typing @ then wait a few seconds, then type a letter.. that seems to work for me now. That's the same thing that I do. And it only works about half the time, usually I also delete the prior words and try to retype everything again.
chilihead Posted March 13, 2016 Posted March 13, 2016 1 minute ago, Joel R said: usually I also delete the prior words and try to retype everything again. This. Often have to start over to get it to work. Maybe it can be enhanced to recognize a tag with each letter typed even if letters already exist. So if a member is BobS and it says Bob, you add the @ before and when you add the "S" it picks it up. This is very handy and should also solve the lag issue since it has to so with having to start with the first letter and there was lag so as you type nothing happens.
Colonel_mortis Posted March 13, 2016 Posted March 13, 2016 It's really weird - I can't reproduce this in Chrome Release or Canary, or Firefox Release or Dev, but obviously you guys can, and some users have also reported it.
Colonel_mortis Posted March 13, 2016 Posted March 13, 2016 And it just happened to me. The following was logged to the JS console: TypeError: a.endContainer.split is not a function stack trace points to CKEDITOR.plugins.ipsmentions/this.respondToAtSymbol() Firefox 47.0a2.
Florent Cadet Posted June 1, 2016 Posted June 1, 2016 I submitted a ticket months ago, they closed it, "cannot reproduce". Bug is still here today, sad for a paid product.
Florent Cadet Posted June 1, 2016 Posted June 1, 2016 A working fix for me, update plugin.js r.11 to 20 Before this.listenForAtSymbolEvent = c.on("change", function(a) { CKEDITOR.tools.setTimeout(function() { var b = c.getSelection(); if (b.getType() == CKEDITOR.SELECTION_TEXT) for (var b = b.getRanges(!0), a = 0; a < b.length; a++) b[a].collapsed && b[a].startOffset && (b[a].setStart(b[a].startContainer, 0), "@" == b[a].cloneContents().$.textContent.substr(-1) && this.respondToAtSymbol(b[a])) }, 0, this) }, this) After this.listenForAtSymbolEvent = c.on("key", function(a) { CKEDITOR.tools.setTimeout(function() { var b = c.getSelection(); if (b.getType() == CKEDITOR.SELECTION_TEXT) for (var b = b.getRanges(!0), a = 0; a < b.length; a++) b[a].collapsed && b[a].startOffset && (b[a].setStart(b[a].startContainer, 0), "@" == b[a].cloneContents().$.textContent.substr(-1) && this.respondToAtSymbol(b[a])) }, 400, this) }, this) I changed event "change" to "key" and I added a 400 ms timer to trigger the event, JS error is gone.
Colonel_mortis Posted June 1, 2016 Posted June 1, 2016 5 hours ago, Florent Cadet said: A working fix for me, update plugin.js r.11 to 20 Before this.listenForAtSymbolEvent = c.on("change", function(a) { CKEDITOR.tools.setTimeout(function() { var b = c.getSelection(); if (b.getType() == CKEDITOR.SELECTION_TEXT) for (var b = b.getRanges(!0), a = 0; a < b.length; a++) b[a].collapsed && b[a].startOffset && (b[a].setStart(b[a].startContainer, 0), "@" == b[a].cloneContents().$.textContent.substr(-1) && this.respondToAtSymbol(b[a])) }, 0, this) }, this) After this.listenForAtSymbolEvent = c.on("key", function(a) { CKEDITOR.tools.setTimeout(function() { var b = c.getSelection(); if (b.getType() == CKEDITOR.SELECTION_TEXT) for (var b = b.getRanges(!0), a = 0; a < b.length; a++) b[a].collapsed && b[a].startOffset && (b[a].setStart(b[a].startContainer, 0), "@" == b[a].cloneContents().$.textContent.substr(-1) && this.respondToAtSymbol(b[a])) }, 400, this) }, this) I changed event "change" to "key" and I added a 400 ms timer to trigger the event, JS error is gone. Key won't work on mobile devices as far as I know.
OctoDev Posted June 2, 2016 Author Posted June 2, 2016 I am getting When trying to do tag someone quickly when typing here. --> Official Forums (THis page literally) Seems to exist when you type too fast lol, well fast n fast.. I've submitted a ticket as well now.
Colonel_mortis Posted June 2, 2016 Posted June 2, 2016 I believe the issue is that in ipsmentions/plugin.js, respondToAtSymbol, because for some reason, under certain conditions that I haven't been able to reproduce at all (I've tried Firefox Dev Edition, Chrome Canary and Chrome release, on this site, my site, and localhost), range.endContainer is a CKEditor element rather than a text node, but only the text node has a split method.
OctoDev Posted June 6, 2016 Author Posted June 6, 2016 The issue does not occur on here anymore, i don't know if they fixed it or what. Perhaps IPS Themes issues..
Colonel_mortis Posted June 6, 2016 Posted June 6, 2016 27 minutes ago, Jimmy Gavekort said: The issue does not occur on here anymore, i don't know if they fixed it or what. Perhaps IPS Themes issues.. I don't think it's fixed, it is just really hard to reproduce. I used to be able to get it to work every time, but I haven't had it for ages. It does seem to vary between browsers too (because it depends whether they return an element or a text node), so it could have been a browser update.
OctoDev Posted June 6, 2016 Author Posted June 6, 2016 1 hour ago, Colonel_mortis said: I don't think it's fixed, it is just really hard to reproduce. I used to be able to get it to work every time, but I haven't had it for ages. It does seem to vary between browsers too (because it depends whether they return an element or a text node), so it could have been a browser update. What the.. It doesn't occur in my theme anymore too lol.
OctoDev Posted June 8, 2016 Author Posted June 8, 2016 Found out why, you have to have a linebreak or so after trying to tag.. Or maybe a specific amount of text.
Colonel_mortis Posted June 8, 2016 Posted June 8, 2016 12 minutes ago, Jimmy Gavekort said: Found out why, you have to have a linebreak or so after trying to tag.. Or maybe a specific amount of text. I can reproduce this issue by quoting your post and attempting to tag next to where you tried to tag Lindy. Edit: But only sometimes...
Colonel_mortis Posted June 8, 2016 Posted June 8, 2016 @Jimmy Gavekort Are you able to reproduce it if you load a fresh editor and just start typing in it? I think it only occurs under certain circumstances that I think can't happen if you just type, but can occur if you start to mention someone then change your mind, and possibly also if you do certain modifications to content you have already written (though I suspect that is browser-dependant).
OctoDev Posted June 9, 2016 Author Posted June 9, 2016 21 hours ago, Colonel_mortis said: yes i tried fresh, such as this it didnt work.. tag was the first thing i wrote
Recommended Posts
Archived
This topic is now archived and is closed to further replies.