@barocss/math-editor-tinymce
v1.0.4
Published
Barocss math editing integration for TinyMCE.
Maintainers
Readme
@barocss/math-editor-tinymce
Math editing for TinyMCE. Install alongside @barocss/math-editor and the host editor SDK.
This workspace package owns its source and tests. This package ships generated JavaScript, TypeScript declarations, and styles. Its host SDK and @barocss/math-editor remain external peers.
Install
npm install @barocss/math-editor-tinymce @barocss/math-editor \
tinymceInstall this package, the core, and the host dependencies listed in peerDependencies. Import the adapter from @barocss/math-editor-tinymce, common helpers from @barocss/math-editor-tinymce/shared, and styles from @barocss/math-editor-tinymce/style.css. Also load @barocss/math-editor/style.css.
All math editor packages · Integration guide · Release preparation
The documentation and unified editor samples are hosted at math-editor.barocss.com. Host SDK versions are listed in peerDependencies.
Development
Workspace exports, main and types point to src/, so apps import this
package without building it first. publishConfig overrides those fields with
dist/ paths for npm consumers. The release pipeline validates the packed paths.
This package owns its host implementation in src/tinymce.ts, its tests in
test/, and its TypeScript build configuration. From the repository root:
pnpm --filter @barocss/math-editor-tinymce build
pnpm --filter @barocss/math-editor-tinymce type-check
pnpm --filter @barocss/math-editor-tinymce testThe build includes private common helpers and their declarations while keeping
the math core and host SDKs external. Add a Changeset for this package when its
published behavior changes. Shared-helper changes must name every affected plugin.
The local pnpm release:math command publishes only new math package versions.
License
MIT. Copyright (c) 2026 barocss.com. See LICENSE, included in this package. The math-editor core is also MIT licensed. Host editor SDKs retain their own licenses.
The default editing: "inline" opens formulas at their position in the document,
including classic iframe hosts. Set editing: "panel" for an external Apply/Cancel
panel. Classic hosts must also load the core, adapter and preview styles inside
their iframe through content_css; application-page imports alone are insufficient.
