The bold function not working on formatted copied and pasted text

DFB

New member
Affected version
v2.2.16
Pasting a piece of text copied from websites, for example, the title of a YouTube video (which has heading tags of h1,h2,h3... seen from the inspect element tool).
In the forum text box, it doesn't allow the copied text to be unbolded or rebolded.

Working locally via the inspect element tool, I was able to fix this issue by applying a style tag encompassing all heading tags h1-7 and changing the font-weight value to normal.

E.g:
<style> h1,h2,h3,h4,h5,h6,h7 {font-weight: normal} </style>
This allowed the new pasted Text to be bolded and unbolded.

I wanted to now incorporate this change through the XenForo custom BB code to my forum, or change any existing code for its corresponding function. Or I'll be happy if a new solution is suggested.

Thanks in advance.
 
Test...

To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.

Description​







When Right to Repair laws take effect, part 1
1.4KLikes
10,388Views
1hAgo
👉 Merchandise: https://store.rossmanngroup.com/memes...🔵 Cheesy mugs & t-shirts: https://bit.ly/rossmannstore👉 Rossmann chat: https://matrix.to/#/#rossmannrepair:matrix.org👉 Recording equipment used upstairs:🔵 HDMI capture: https://amzn.to/4bcXEFL🔵 Camera: https://amzn.to/3VVkSLW🔵 Black AT4050 Microphone: https://amzn.to/4cAdkUi🔵 Audio interface: https://amzn.to/3VuKihx🔵 Bad mic stand for AT4050 mic: https://amzn.to/4ce9dxH https://amzn.to/3RJ3W93
 
I think the issue here is more that the remove formatting button doesn't work on headings. You have to remove the heading tags by toggle;ing the bbcode. Let's all ask for a new editor.

Best Fails of the Year | Try Not To Laugh​

 
Back
Top Bottom