• Applicable Software: MokonyxEditor
  • Min Version Number: 01.22.00
  • Max Version Number: Not Applicable

The problem it solves

By default, Joomla's Text Filter strips <style> tags out of saved content, and any CSS that does slip through applies to the whole page. MokonyxEditor fixes both halves:

  • Save-time preservation - when an allowed author saves, the editor marks the style block so it passes through the Text Filter intact instead of being stripped.
  • Render-time scoping - when the article displays, every rule you wrote is automatically prefixed to a per-article container (#mokocss-<id>), so your styles match only that article's content and can't bleed into menus, modules, or other articles.

Turning it on

Inline CSS is an opt-in capability controlled by user group, so casual authors can't inject styles by accident:

  1. Go to System → Manage → Plugins and open Content - Mokonyx Editor.
  2. Set Inline CSS Groups to the user groups whose authors may keep inline styles.
  3. Save.

Super Users are always allowed, regardless of this setting. Content saved by anyone outside the allowed groups has its <style> stripped as usual.

How to use it

In the editor, switch to the Source (code) view and add a <style> block anywhere in the article body - for example:

<style> .callout { border-left: 4px solid #0b5; padding: 1rem; } </style>

Write your selectors as if they target the whole page; the scoping prefix is added for you at render time. Save as normal.

Good to know

  • Fail-open. If the CSS can't be parsed or scoped, the article simply renders without the inline block rather than breaking the page.
  • This is the article half of the story. The module half lives in MokonyxHero's Custom CSS field, which works the same way for hero sections.
  • For heavier styling, prefer a template override or the site's stylesheet; inline scoped CSS is best for one-off article tweaks.