Bug with __TOC__

Hi everyone,
There is a bug when trying to move the table of contents to a different position using __TOC__ in the source code editor. As soon as the page is edited again in the visual editor, the __TOC__ is removed and the table of contents appears at the top again.
The exact same thing also happens in your demo wiki.

Is there a solution?

Best regards

Hello Bast2228,

welcome to the community!

In order to test the reported problem, I created the following examples:

In my experiments listed here, all magic word usages seem to be correctly saved then rendered in wanted places on page. It would be helpful if you can share a piece of wikitext source text, with which the TOC is not working as expected - we can then further discuss based on the context.

Thank you and hope you enjoy exploring all about BlueSpice = )

Best wishes,
Hua

Hello Hua,
I edited your site
https://en.demo.bluespice.com/wiki/Sandbox/community-369/toc-in-the-middle in the visual editor and saved it. After that, the TOC is now on the top of the site. _TOC_ works correct until you edit the site with the visual editor and save it

Best regards
Basti

Edit: you can see it in the difference between the revisions. I only added the word test and it removes automatically the _TOC_

1 Like

Hello Basti2228,

thanks for your detailed feedback! I can now confirm that this is a bug.

This thread is linked to an internal bug ticket - when a release containing a corresponding bugfix is ready, my colleague will update here again.

Best wishes,
Hua