Skip to main content
Jahia Store
EN

Custom Code Block

community
Download 1.0.1

Information

Module ID
custom-code-block
Group ID
org.jahia.community
Status
community
Category
Pre-built templates and components
Author
pvollenweider
Developer website
https://github.com/Jahia/custom-code-block
Requires Jahia
8.2.0.0
Updated
2026-08-12
Source
scm:git:git@github.com:Jahia/custom-code-block.git
Tags
  • html
  • css
  • javascript
  • code

Jahia module providing a jnt:customCodeBlock component that allows editors to inject raw HTML, CSS and JavaScript directly into a page.

The three fields use the CodeMirror selector type for syntax highlighting:

Property Type i18n Description
html String yes Injected directly in the page (HTML, scripts, embeds…)
css String no Injected in <head> inside a <style> tag
js String no Injected before </body> inside a <script> tag (no script tags needed)

The three fields use the CodeMirror selector type for syntax highlighting.

Once installed, the module must be enabled per site — go to each site's settings and activate it from the modules list.

The component will then be available in the Advanced Content category when adding content in page edit mode.

Screenshots

Dependencies

Depended on by

Nothing depends on this module.

Versions

Requires Jahia 8.2.0.0Updated 2026-08-12