Bitcoin Forum
July 11, 2026, 05:47:16 AM *
News: Latest Bitcoin Core release: 31.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
  Print  
Author Topic: Why is it impossible to Undo (CTRL+Z) Smiley and Bulletin board codes?  (Read 582 times)
shahzadafzal
Copper Member
Legendary
*
Offline

Activity: 2240
Merit: 3397



View Profile
July 10, 2026, 11:18:13 AM
 #21

Currently I am using Android to access this forum. I use gboard which has an inbuilt undo button. It is very helpful for undoing or redoing any type of text. Basically I don't need any script or modification in forum code to undo anything.


Well, I don't think that's the kind of "undo" we're talking about here.

What the OP requested, and what PowerGlove's script provides, is the ability to undo toolbar actions.

For example, try clicking one of the smiley buttons on the toolbar and then use Gboard's Undo button to see whether it removes the inserted BBCode.

This is especially useful when you want to add a [ quote ] tag but accidentally click [ code ] instead.

When you're writing a long post, being able to undo those toolbar actions can save a lot of time.


░░░░▄▄████████████▄
▄████████████████▀
▄████████████████▀▄█▄
▄██████▀▀░░▄███▀▄████▄
▄██████▀░░░▄███▀▀██████▄
██████▀░░▄████▄░░░▀██████
██████░░▀▀▀▀▄▄▄▄░░██████
██████▄░░░▀████▀░░▄██████
▀██████▄▄███▀░░░▄██████▀
▀████▀▄████░░▄▄███████▀
▀█▀▄████████████████▀
▄████████████████▀
▀████████████▀▀░░░░
 
 CCECASH 
logfiles (OP)
Copper Member
Legendary
*
Offline

Activity: 2772
Merit: 2352


WQEVOZY9F0S5


View Profile WWW
July 10, 2026, 04:59:06 PM
 #22

I've been thinking about this one, and something that I think might be giving theymos pause is that the diff I posted earlier is now out-of-date (that is, the code it touches has since been changed). Also, the diff was a bit confusing to begin with (that is, it's not clear by looking at it that two functions are being changed).

So, I split the fix into two diffs and re-based them against what's currently in /Themes/default/script.js. First, the replaceText change:
Thanks PowerGlove. You are doing an incredible Job!  Wink
Now let's wait and see if the admin put it into work



Currently I am using Android to access this forum. I use gboard which has an inbuilt undo button. It is very helpful for undoing or redoing any type of text. Basically I don't need any script or modification in forum code to undo anything.
https://talkimg.com/images/2026/07/10/Uc6x4a.png
I don't have that particular keyboard, so I am not sure if it really does undo Smileys and Bulletin board codes. For the other normal characters likes those on your screenshot, even on PC one can undo them. Now enter a smiley and BB codes and see if you can undo them using that button

Another thing is I believe the biggest number of people here use PC's to access the forum.

▄▄████████████████████▄▄
▄███████▀▀██████▀▀███████▄
████████████████████████
████████▄▄██████▄▄██████

████████████████████████
██▄▄█████████████▄▄██████
██▀▀██████████████████▄▄██
██████▀▀██████████████▀▀██
██████████████████████████
██████▀▀██████▀▀████████
████████████████████████
▀███████▄▄██████▄▄███████▀
▀▀████████████████████▀▀
 
 DΞX.fo 
▄▄██████
█████████
██████████
█████████
██████████
█████████
▀▀██████

▄███████
▄██████████
████████████
█████████████
█████████████
|
▄▄█
▄████▀
▄███▀
▄██▀▄██
█████▀▀
███████
████████
▀██▄████
▄████▄▄
▄█████▀███
▄█████▀████
█████▀███████
▀██▀█████████
|  BTC     XMR  
  DAI     LTC  
   Fees  0.8%    
ImGenius
Full Member
***
Offline

Activity: 588
Merit: 136


Let’s get in good shape


View Profile
July 10, 2026, 05:41:27 PM
 #23

I don't have that particular keyboard, so I am not sure if it really does undo Smileys and Bulletin board codes. For the other normal characters likes those on your screenshot, even on PC one can undo them. Now enter a smiley and BB codes and see if you can undo them using that button

Another thing is I believe the biggest number of people here use PC's to access the forum.
Yes I also think biggest number of users use pc to access bitcointalk I also use pc sometimes.
The undo and redo button in keyboard works perfectly for any kind of changes happen in "reply box"  it also included smiley and bbcodes.

PowerGlove
Hero Member
*****
hacker
Offline

Activity: 704
Merit: 7210



View Profile
July 10, 2026, 10:54:33 PM
 #24

When someone discovers these little "glitches", the PowerGlove always pops up.
Haha. Yeah. I... will avoid unpacking my feelings and just say that I appreciated your post. Wink

The changes don't seem to break anything, and in fact, it works really well. This is going to be quite handy for designing signatures. Grin
Thanks for testing it!

This is especially useful when you want to add a [ quote ] tag but accidentally click [ code ] instead.
I see that you're using spaces to write BBCode tags in a way that doesn't "activate" them. Maybe you already know this, but, just in case you don't: that's what [nobbc] is for (so that, for example, you can write [quote] rather than [ quote], [quote ], or [ quote ]).

(Hmm... I wonder if it's worth adding [nobbc] to the toolbar and/or the help? It might be a nice "starter patch" for someone looking to get their feet wet! Though, just as I say that, I think, "Please, please don't some AI-using wally now decide to take a run at a task that would ordinarily have stymied them. I'm getting really, really tired of digesting output that's clearly mysterious to the person presenting it.")

Even more off-topic: I recently noticed that someone had their display name changed to a BBCode tag ([btc]), and I thought, "Ah, jeez. Now people need to mangle the name, or use [nobbc] or a zero-width joiner or something each time they want to mention that user? Sigh." Cheesy

@theymos: Maybe you should place a zero-width joiner after the opening bracket of that user's display name, so that copy-pasting the name can become a reasonably convenient way to mention them? (Probably I would undo the name-change if it were up to me; I'd probably also add some logic to prevent any future BBCode-colliding display names.) Undecided
Pages: « 1 [2]  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!