ElkArte Community

Elk Development => Bug Reports => Topic started by: badmonkey on June 21, 2017, 08:57:04 am

Title: WYSIWYG smiley and space bar scroll
Post by: badmonkey on June 21, 2017, 08:57:04 am
1.1 RC1.  Using WYSIWYG mode, click a smiley, then the space bar, scrolls the screen down.  8)   Yep, did it here too.  
Title: Re: WYSIWYG smiley and space bar scroll
Post by: emanuele on June 21, 2017, 03:22:25 pm
The buttons do not return the focus to the textarea after release.
Title: Re: WYSIWYG smiley and space bar scroll
Post by: Spuds on June 21, 2017, 04:47:53 pm
Hummm ... maybe something with create permanent drop down that the smiles use or maybe appendEmoticon ?
Title: Re: WYSIWYG smiley and space bar scroll
Post by: Spuds on June 21, 2017, 08:24:51 pm
Well scratch that thought   It acts the same for all of the toolbar buttons.  Trying it on the editor home page, clicking on the toolbar enables the function and the cursor remains in the editor window. 

I tried to disable a bunch of things to see if it was some JS problem but have not been able to figure out why it behaves this way here (where you have to click back in the editor window after interacting with the toolbar, ie bold, smiley ect)
Title: Re: WYSIWYG smiley and space bar scroll
Post by: Spuds on June 22, 2017, 02:18:59 pm
Believe I found the problem  :o so give it a try (here) now and see how it goes ... I have only checked this with chrome so far so please try it out with FX, IE/Edge etc ... 
Title: Re: WYSIWYG smiley and space bar scroll
Post by: emanuele on June 22, 2017, 03:03:56 pm
Looks (almost) good! :D

But I found another bug. :P

In WYSIWYG, if a smiley doesn't have a space after it, it is converted to the corresponding code.
Title: Re: WYSIWYG smiley and space bar scroll
Post by: Spuds on June 22, 2017, 04:04:34 pm
I've tried what I think you are saying a couple of ways and don't see the bug ... so could you explain it a bit more  O:-)
Title: Re: WYSIWYG smiley and space bar scroll
Post by: emanuele on June 22, 2017, 04:59:50 pm
hmm... odd, now it works perfectly. Well, I'm not that lucky with WYSIWYG anyway. :P
Title: Re: WYSIWYG smiley and space bar scroll
Post by: Spuds on June 22, 2017, 05:17:20 pm
Its the new self healing / fixing code we added to 1.1 :P

Keep looking for problems as this is our custom blended sce for 1.1 running on this site. 
Title: Re: WYSIWYG smiley and space bar scroll
Post by: emanuele on June 22, 2017, 05:47:10 pm
ROFL!
/me likes self-healing code!