YAFLogo

Mudasir Ali
  • Mudasir Ali
  • 50.6% (Neutral)
  • YAF Forumling Topic Starter
2021-07-10T04:23:22Z
Hello Everypne, Okay, what should I put in the onClick Javascript area for a new BBCode to get it to wrap the tags around the currently selected text. I would like it to function like it does when they click on the B icon for making text bold or like it does for the BBCodes here. On my installation , the Bold button works as desired, but the BBCode entries simply stick it on the end and ignore whatever text I have highlighted.
Sponsor
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.0 RC 2
2021-07-11T02:01:20Z
Atleast with the latest version i cannot reproduce the issue

UserPostedImage 

As shown in the video the text gets wrapped by default also for custom bbcodes.

Which version are you using?


UserPostedImage