HCL Connections | Product Ideas Portal

Welcome to the HCL Connections Product Ideas Lab! The place where you can submit product ideas and enhancement request. We encourage you to participate by voting on, commenting on, and creating new ideas. All new ideas will be evaluated by the HCL Product Management & Engineering teams, and the next steps will be communicated. While not all submitted ideas will be executed upon, community feedback will play a key role in influencing which ideas are and when they will be implemented.

For more information and upcoming events, please visit our HCL Connections page.

Fix Wikis to enable Prism.js Syntax Highlighting by TinyMCE codesample plugin

TinyMCE has a great plugin to insert source code snippets in the editor: https://www.tiny.cloud/docs/plugins/codesample/#codesample_languages

 

With the plugin itself, this just work inside the editor. If the snippet is saved, there is no Syntax Highlighting - Which is useless in my Point of View. When I want to document source code, the main target are the readers and they're viewing the page in read-only mode. This is a common requirement and no problem in other systems e.g. Confluence.

The TinyMCE codesample plugin has a soluition: It's compatible to Prism.js. You just need to include the js and css file in a JSP of Connections (e.g. header.jsp), and the codesamples in TinyMCE were pretty rendered  on the page in view-only mode. 

While this works in Blogs or Forums, it's broken in Wikis. However, executing Prism.highlightAll() manually would resolve the problem. Sadly it's hard to fix this, since it seems that the Connections JS from Wikis interfere with each other and this breaks Prism.js.

I already opened a support case, but sadly HCL told me this is not supported. So please fix this with an idea. Connections is bundled with TinyMCE and the premium plugins of them. It doesn't make sense not to support them just because they're relying on third party components.

  • Avatar32.5fb70cce7410889e661286fd7f1897de Guest
  • Oct 29 2019
  • Under review
  • Attach files