Did not wait for an answer.
I corrected the code from here and it turned out what I wanted.
Thanks for the wonderful plugin!
Added by 2:
When verified through the BrowserLing service, bbCode is inserted correctly.
Added by:
In addition, you do not need to show the “Preview” button when bbCode is disabled.