ElkArte Community

Elk Development => Bug Reports => Exterminated Bugs => Topic started by: Ruth on March 19, 2023, 05:54:49 am

Title: Quotes
Post by: Ruth on March 19, 2023, 05:54:49 am
Hi!

An old topic, but maybe this issue is something simulaire?

I noticed right now on test forum (ElkArte 1.1.9 php 8.1?), that if WYSIWYG-Editor is used
you cannot type proper in editor, if you quote first or if you edit a post, which contains a quote.

The cursor will stay in the "quote field". You could type into this quote but not beyond.
If you change back to the normal view (view source), typing beyond the quote will be possible again.
Title: Re: Quotes
Post by: Spuds on March 19, 2023, 03:17:53 pm
Split and moved this ...

I was able to reproduce this behavior when I turned off the quick reply option in my profile and enabled wizzy as the default.  At that point when you select quote you go to the full editor and the cursor was stuck in the quote box. 

I think I found the issue deep :pick: inside the editor, and I've attached an updated build for testing.  There was already a function being called to prevent this problem, but there were a couple of issues that caused it to fail.  Anyway just replace the one in themes\default\scripts with this version and give it a test.
Title: Re: Quotes
Post by: Ruth on March 19, 2023, 04:09:12 pm
Thank you very much, Spuds. :smiley:

I tried your file. It is working almost, if you quote or are editing a post with a quote.
Then you can change to WYSIWYG and can type now in editor.

But if the settings in profile say "use WYSIWYG editor", then it does still not work.
Title: Re: Quotes
Post by: Spuds on March 19, 2023, 04:14:51 pm
Be sure to clear your cache to ensure its using the new file.
Title: Re: Quotes
Post by: Ruth on March 19, 2023, 04:22:03 pm
Yes...I just did...also cleared cache on test forum.

It is working now! Great! :smiley:  Thank you!
Title: Re: Quotes
Post by: Spuds on March 19, 2023, 04:28:05 pm
Glad its working :D
Title: Re: Quotes
Post by: DeadMan on March 19, 2023, 05:40:11 pm
Quote from: Spuds – Anyway just replace the one in themes\default\scripts with this version and give it a test.

Is this recommended for everyone to do?
Title: Re: Quotes
Post by: Spuds on March 19, 2023, 06:09:47 pm
Should be safe for anyone on 1.1.x
Certainly 1.1.7+ but its not like I can realistically test every combination of this and Elk like a Mr. Potato head :potato: LOL  :cheesy:
Title: Re: Quotes
Post by: DeadMan on March 19, 2023, 06:12:04 pm
Well, I'm on 1.1.9, so...
Title: Re: Quotes
Post by: Spuds on March 19, 2023, 06:29:29 pm
Do it !!! (I did to my sites)
Title: Re: Quotes
Post by: DeadMan on March 19, 2023, 07:13:55 pm

Well... Ya didn't have to force me! LOL