miniBB ®

miniBB

®
Support Forums
  
 · Start · Sign in · Register · Search · Statistics · File Bank · Manual ·
Bugs miniBB Support Forums / Bugs /  
 

The Quote is pasting the previously highlighted text if clicked multiple times

 
Author tom322
Active Member
#1 · Posted: 20 Sep 2025 14:46
Technically, it may not be a bug, but the strange behavior may be confusing.

The problem — after highlighting some text and clicking on the «Quote» link, the text is pasted into the form (this is correct). However, when now you click the same «Quote» link again (OR any other «Quote» link), the previously highlighted text is pasted again.

I think it would be better to prevent it, ie. after a subsequent click on the «Quote» button, only the warning about how to quote should appear.

If you fix it, please specify what exactly you fixed in the code, thank you ;)

Author Paul
Lead Lead Developer
#2 · Posted: 24 Sep 2025 15:47
It seems I've got what do you mean — after clicking on «Quote», the quotation marker is not reset and still kept in memory. So, the next time you click on «Quote», the script supposes if there's something in memory then it's selected.

But it lasts only until the cursor is appearing/blinking in the post form. As soon as you click anywhere on the page and the cursor disappears, the marker is reset. At least this is how it works in desktop browsers — on mobile devices, this status seems to be reset immediately.

Anyway, here would be a simple solution (I'll apply it for the next official release, but it should work right now on these forums already):

— open form.js for editing

— locate the code string ending with:

bbCode2='[/quote]'; endOfLine='\n';
— after this, enter/paste:

selektionEvent='';
Let me know if it worked for you.

Author tom322
Active Member
#3 · Posted: 24 Sep 2025 17:04
Hi Paul, yes you are exactly right what I meant.

But could you check this in Firefox — now I reloaded the form.js from the browser cache and it still didn't change anything. So I suspect it may work in other browsers, but not in Firefox.

I mean — I assume you've already changed it on minibb.com domain where I check or you didn't change it yet..

Update — I checked this forum on Edge browser and it still doesn't work, unless you didn't change it here. I don't have Chrome installed to check, but it may work there.

Author tom322
Active Member
#4 · Posted: 24 Sep 2025 17:10
Update 2 — hm, it seems to work now in Firefox, maybe there was cache delay, it started to work a few min after my script reloading.. but still, please check in Firefox, it seems to work at one minute but doesn't work later.

Author tom322
Active Member
#5 · Posted: 24 Sep 2025 17:20
Update 3 — I changed it on my site and still have a problem with Firefox / Edge, unless there's some kind of a delay or the selection stays in the browser due to cache or .htaccess settings.. Now it works so maybe it works..

Author Paul
Lead Lead Developer
#6 · Posted: 24 Sep 2025 22:46
form.js is updated on this forum and I'm pretty sure it works. But this server extensively caches static files, perhaps as possibly yours (most of shared servers or VPS cache nowadays everything they could). So it's not just enough to reload exactly form.js in the URL bar. Also, Firefox IMHO lost its past times favor. I'm using Opera and it allows quickly and effectively clean all cached data files to check the fresh results. Edge and Firefox require to go much deeper in their Settings to clean up just files, but not the passwords, cookies or search history. Try in Opera first.

Author tom322
Active Member
#7 · Posted: 25 Sep 2025 18:27
I think it works and the fix in the code makes sense why it does, thank you. Will report if more problems.

Bugs miniBB Support Forums / Bugs /
 The Quote is pasting the previously highlighted text if clicked multiple times
 Share Topic's Link

Your Reply Click this icon to move up to the quoted message


  ?
Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.


Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed with no explanation.

 

 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Proceed with the Private Messaging add-on: allow your miniBB-forums members to communicate with each other.