Aller au contenu principal
Jahia Store
FR

Custom Code Block

community
Télécharger 1.0.1

Informations

Identifiant du module
custom-code-block
Identifiant de groupe
org.jahia.community
Statut
community
Catégorie
Pre-built templates and components
Auteur
pvollenweider@jahia.com
Site web du développeur
https://github.com/Jahia/custom-code-block
Nécessite Jahia
8.2.0.0
Mis à jour
2026-07-09
Source
scm:git:git@github.com:Jahia/custom-code-block.git
Étiquettes
  • 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.

Captures d'écran

Versions

Nécessite Jahia 8.2.0.0Mis à jour 2026-04-09