Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
460 views
in Q2A Core by

hello guys, how i can add custom bbcode to my site? for example

[web]click here to my site[/web] 

this web tag will auto <a href="url">click here to my site</a>

Q2A version: 185

1 Answer

+1 vote
by

If you mean in questions or answers: that is a feature the editor plugin you're using would have to provide. However, the WYSIWYG editor as well as the markdown editor already allow for creating web links out of the box. In the WYSIWYG editor you can add a link to any text by selecting the text and then clicking the chain icon in the editor toolbar. In the markdown editor you'd simply use markdown link notation:

[click here to my site](https://www.example.com/)

or

[click here to my site][1]
[1]: https://www.example.com/

If you want the ability to add arbitrary functionality of your own, not just web links, you'll probably have to modify the editor plugin you're using or create a new one from scratch.

by
hmm well then, only super admin use the WYSIWYG editor, is it possible?
by
+1
Is what possible? To configure Q2A in a way that only superadmins get the WYSIWYG editor? It should be possible *somehow* (if you patch the code or write a plugin for it), but AFAICS there are no settings for configuring this kind of thing in the admin section.

Welcome to the Q&A site for Question2Answer.

If you have a question about Q2A, please ask here, in English.

To report a bug, please create a new issue on Github or ask a question here with the bug tag.

If you just want to try Q2A, please use the demo site.

Categories

...