Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
in Plugins by


I'm new on Q2A and I want to customize CKEditor with the BBCode plugin, but I cannot do it.

  1. Have you some instructions to add this BBCode CKEditor plugin working ?
  2. Have you some instructions to add the "Source" button in CKEditor ?
Thank you !
Q2A version: 1.8.3

1 Answer

+1 vote
First of all bare in mind that there is a CUSTOMIZE.md file in the plugin directory that explains how to customize the CKEditor.

Regarding both of your questions, I think they should both be answered here: https://www.question2answer.org/qa/66264

More specifically talking about the second question, you could refer to https://www.question2answer.org/qa/42919 (assuming it is still valid).

This seems to be an example of the BBCode plugin in action: https://ckeditor.com/docs/ckeditor4/latest/examples/bbcode.html

This is the BBCode plugin to install: https://ckeditor.com/cke4/addon/bbcode

I think that should cover everything.
Thank you very much for these links @pupi1985 !

I've already install BBCode plugin, but it was the CUSTOMIZE.md I didn't see... I need some glasses...

I tried multiple configs and the BBCode plugin is OK when using CKEditor switching normal and source mode, but when I send my question, in Q&A the BBCode marks are "in the text" like : [b]this is bold[/b] and [u]this is underlined[/u]

I'm french and I read english, but I can't find (for the moment) any answer of my problem.

Any idea on this problem ? I think it's a problem in CKEditor but I didn't find the solution yet.

For you to actually see the bbcode as HTML you will need to convert it. You have to look for a library to do so. Once you have it you need to create a viewer module that would render the bbcode format. See here: https://docs.question2answer.org/plugins/modules-viewer/
OK ! I thought about that, but I did not find this page about viewer module.
Little work for the weekend ;-)

Thank you very much @pupi1985 !