Done... if I force NOPARSE with the CODE TAGs, there are no errors when there is BBCODE tags in the code being tagged; but this is the same problem in the desktop, so it's not a big deal.
So now I have a new way ahead (no need to use the legacy toolbar code from the desktop code) to make a mini-toolbar for the mobile editor, but the problem with this approach is that it is hard to select text on mobile (doable, but a pain).
I may consider installing MARKDOWN for this instead:
Markdown Ref:
Markdown - Wikipedia