Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@editora/content-rules

Latest version: v1.0.5

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: ajaykr089
3 Stars
0 Forks
4 Versions
191 Downloads
TypeScript Repo language

Scan summary

@editora/content-rules was last scanned on 29 Nov 2026 at version 1.0.5. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 4 versions; the latest 2 were published within 3 days (27–29 Nov 2026).
  • Findings: No rules fired in version 1.0.5.
  • Downloads: 191 downloads.

Versions

4 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.0.5 LATEST 29 Nov 2026 No rules fired
1.0.4 27 Nov 2026 No rules fired
1.0.3 5 Oct 2026 No rules fired
1.0.2 5 Oct 2026 Not shown

No rules fired in 1.0.5

Findings

Findings for v1.0.5. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.0.5; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@editora/content-rules

Version License TypeScript Size

[!IMPORTANT] Live Website: https://editora-ecosystem.netlify.app/\ Storybook: https://editora-ecosystem-storybook.netlify.app/

@editora/content-rules adds native content governance checks to Editora (required sections, banned words, readability, and sentence-length rules).

Features

  • Native framework-agnostic plugin (no framework dependency)
  • Works in React (Vite/CRA) and Web Component without modification
  • Realtime debounced auditing for performance
  • Rule checks included out of the box:
    • banned words
    • required headings/sections
    • maximum sentence length
    • readability threshold (Flesch-style score)
  • Accessible rules panel (role="dialog", keyboard navigation, aria-live updates)
  • Multi-instance safe (state isolated per editor)
  • Light/dark theme support
  • Extensible via custom rule callbacks

Install

npm install @editora/content-rules

Basic Usage (React)

import { EditoraEditor } from '@editora/react';
import { BoldPlugin, HistoryPlugin, ContentRulesPlugin } from '@editora/plugins';

const plugins = [
  BoldPlugin(),
  HistoryPlugin(),
  ContentRulesPlugin({
    bannedWords: ['obviously', 'simply'],
    requiredHeadings: ['Summary', 'Risks'],
    maxSentenceWords: 28,
    minReadabilityScore: 58,
    enableRealtime: true,
  }),
];

export default function App() {
  return <EditoraEditor plugins={plugins} />;
}

Basic Usage (Web Component)

<editora-editor id="editor"></editora-editor>
<script>
  const editor = document.getElementById('editor');
  editor.setConfig({
    plugins: 'bold history contentRules',
    toolbar: {
      items: 'bold undo redo | contentRules contentRulesAudit contentRulesRealtime',
    },
    pluginConfig: {
      contentRules: {
        bannedWords: ['obviously', 'simply'],
        requiredHeadings: ['Summary', 'Risks'],
        maxSentenceWords: 28,
      },
    },
  });
</script>

Accepted aliases: contentRules, content-rules, contentrules.

Toolbar Commands

  • toggleContentRulesPanel -> open/close content rules panel
  • runContentRulesAudit -> run full audit immediately and open panel
  • toggleContentRulesRealtime -> toggle realtime auditing
  • getContentRulesIssues -> emit editora:content-rules-issues, cache latest issues on editor.__contentRulesIssues, and optionally pass issues to a callback
  • setContentRulesOptions -> update rule config at runtime

Keyboard Shortcuts

  • Ctrl/Cmd + Alt + Shift + R -> open/close content rules panel
  • Ctrl/Cmd + Alt + Shift + L -> run content rules audit
  • Ctrl/Cmd + Alt + Shift + T -> toggle realtime auditing
  • Esc -> close panel when focused

Advanced Usage

Add custom rule
ContentRulesPlugin({
  customRules: [
    {
      id: 'must-include-signoff',
      severity: 'error',
      evaluate({ text }) {
        if (/approved by:/i.test(text)) return [];
        return [
          {
            id: 'must-include-signoff-0',
            ruleId: 'must-include-signoff',
            severity: 'error',
            message: 'Document must include an "Approved by:" line.',
            suggestion: 'Add an approval sign-off section at the end.',
          },
        ];
      },
    },
  ],
});
Update rules at runtime
(window as any).executeEditorCommand?.('setContentRulesOptions', {
  bannedWords: ['very', 'really'],
  requiredHeadings: ['Overview', 'Decision'],
  minReadabilityScore: 62,
});

(window as any).executeEditorCommand?.('runContentRulesAudit');
Read issues programmatically
const exec = (window as any).executeEditorCommand;

exec?.('getContentRulesIssues', (issues) => {
  console.log('issues from callback', issues);
});

document.addEventListener('editora:content-rules-issues', (event) => {
  const issues = (event as CustomEvent).detail?.issues || [];
  console.log('issues from event', issues);
});

Edge Cases Covered

  • Realtime audits are debounced to avoid re-scanning on every keystroke.
  • Repeated snapshots are skipped to avoid duplicate expensive runs.
  • Custom rule errors are isolated so built-in checks still run.
  • Each editor instance keeps separate options, issues, panel state, and timers.
  • Issue locate action gracefully falls back when precise selection cannot be resolved.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @editora/content-rules

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Frame 2085668439 (1)
Group 1261154229