Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Knowledge Base don't accept Source Codes (XML) in their content - even adding codesnippet into TinyMCE #7590

Closed
Gambware opened this issue Jul 5, 2020 · 1 comment

Comments

@Gambware
Copy link

Gambware commented Jul 5, 2020

Hi Guys,

We need to insert some XML code into our KB on GLPI - (We are creating Zabbix Templates XML repository in GLPI KB)
I could verify there isn't codesnippet button into TinyMCE editor. After some changes into html.class.php and adding TinyMCE plugin called codesamples, We enabled the button codesnippet into TinyMCE. as the image below

image

even add and work the codesample plugin

image

image

When save the KB, everything stay messed

image

There is anyway to solve this ? Cause it will be usefull use the KB as a SourceCode repository.

Thanks advandes

@cedric-anne
Copy link
Member

cedric-anne commented Jul 6, 2020

Hi,

This is a know problem, but fixing it is really complicated as it will require lot of changes on either core and plugin changes, and maybe a painfull migration for everyone.

I tried a fix on #6111, but I was not able to provide a bulletproff migration, so it has been abandonned for now.

Problem is same as #140, so I close this issue.

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants