There is a problem where if you highlight some text and click reply, the signature will not show up. I even tried making changes to fix it but it didn’t work.
ⓘ This user is suspected of being a cat. Please report any suspicious behavior.
There is a problem where if you highlight some text and click reply, the signature will not show up. I even tried making changes to fix it but it didn’t work.
Hmm. You could implement a delay. Could be what is happening is that when highlighting and clicking reply, it creates a race condition between whatever inserts the highlighted text into the text box and your sig, which does the same. What likely is happening is that for a split second your sig is added, then it’s replaced by the highlighted text as a quote. If the delay works, you’d want to append to whatever is in there, and it would have to run even if the field value isn’t empty.
Yeah and the very last line turns up a problem, where when you edit a comment it will add another signature. For now I’ll just go with “don’t touch it if it isn’t empty” since it’s all easier.
ⓘ This user is suspected of being a cat. Please report any suspicious behavior.
Yeah, another solution, though probably also very annoying to implement cleanly, is to have it fire when you click into the textarea and have it check the text for the sig using match or something similar.
There is a problem where if you highlight some text and click reply, the signature will not show up. I even tried making changes to fix it but it didn’t work.
ⓘ This user is suspected of being a cat. Please report any suspicious behavior.
Hmm. You could implement a delay. Could be what is happening is that when highlighting and clicking reply, it creates a race condition between whatever inserts the highlighted text into the text box and your sig, which does the same. What likely is happening is that for a split second your sig is added, then it’s replaced by the highlighted text as a quote. If the delay works, you’d want to append to whatever is in there, and it would have to run even if the field value isn’t empty.
Yeah and the very last line turns up a problem, where when you edit a comment it will add another signature. For now I’ll just go with “don’t touch it if it isn’t empty” since it’s all easier.
ⓘ This user is suspected of being a cat. Please report any suspicious behavior.
Yeah, another solution, though probably also very annoying to implement cleanly, is to have it fire when you click into the textarea and have it check the text for the sig using match or something similar.