Plugins
OverviewHTML editors
CKEditor 5 CKEditor 4 TinyMCE 6 and 7 TinyMCE 4 Froala Tiptap AngularCMS and LMS
WordPress Moodle Canvas, Blackboard and LTI BloggerOther
Google Docs and Slides TiddlyWikiDevelopers
Writing your ownPlugins
If your site already has a rich-text editor, a CMS or a learning platform, you do not need to build an equation editor into it yourself. Each plugin below adds an fx button that opens fxEditor and puts the finished equation into the document. Every plugin's page has it running live, a customiser for its design, a download, and the complete code.
Available plugins
| Platform | Versions | Inserts | Status | Source | |
|---|---|---|---|---|---|
| CKEditor 5 | v42 and later | MathML or SVG image | Released | GitHub | |
| CKEditor 4 | 4.x | MathML or SVG image | Legacy | GitHub | |
| TinyMCE | 6 and 7 | MathML or SVG image | Released | GitHub | |
| TinyMCE 4 | 4.x | MathML or SVG image | Legacy | GitHub | |
| Froala | 3 and 4 | MathML or SVG image | Preview | GitHub | |
| Tiptap / ProseMirror | Tiptap 2 | MathML or SVG image | Preview | GitHub | |
| WordPress | 5.0 to 7.1, Classic Editor | MathML or SVG image | Preview | GitHub | |
| Moodle | 4.1 and later | Image, LaTeX or MathML | Preview | GitHub | |
| Google Docs and Slides | — | Image | Preview | GitHub | |
| Canvas, Blackboard, Brightspace, Schoology | LTI 1.3 | Image | Preview | GitHub | |
| TiddlyWiki | 5.4 and later | MathML or SVG image | Preview | GitHub | |
| Blogger | — | Renders LaTeX in posts | Released | — | |
| Angular | — | Via the TinyMCE plugin | Released | — |
Released plugins are published and supported. Preview plugins are new: they work, but have not yet been through a full release on their platform, and each page says what has been tested. Legacy plugins are for older editor versions, kept for sites that still run them.
Your platform is not listed? Every plugin is built on the same public API, and Writing your own shows how. Or ask us.
What every plugin shares
A licence key
The equation editor is activated with your fxEditor licence key, the same
one you would pass to EqEditor.init()
directly. Each plugin has an option for it, and one for its design — the names differ only
to follow each platform's own conventions:
| Plugin | Licence option | Design option |
|---|---|---|
| CKEditor 5 | eqnEditor: { licence: '…' } | eqnEditor: { design: {…} } |
| CKEditor 4 | config.eqneditor_licence | config.eqneditor_design |
| TinyMCE 4, 6 and 7 | eqneditor_licence | eqneditor_design |
| Froala | eqneditorLicence | eqneditorDesign |
| Tiptap | EqnEditor.configure({ licence: '…' }) | EqnEditor.configure({ design: {…} }) |
| WordPress | window.eqneditorLicence | window.eqneditorDesign |
| Moodle | Licence key, in the plugin's site settings | Design, the same settings, as JSON |
| Google Docs and Slides | Script property EQNEDITOR_LICENCE | Script property EQNEDITOR_DESIGN, as JSON |
| LTI 1.3 | Environment variable EQNEDITOR_LICENCE | Environment variable EQNEDITOR_DESIGN, as JSON |
| TiddlyWiki | Tiddler $:/config/codecogs/eqneditor/Licence | Tiddler $:/config/codecogs/eqneditor/Design, as JSON |
Get your key from fxeditor.codecogs.com/purchase. Without one, equations show the reason they cannot render in place of the maths.
A design
Each plugin also takes a design — the dialog's width, height and scale, the toolbar's panels and size, the colour, the size of equations and markup, whether undo/redo shows and how the dialog opens. It is the same object on every platform, under that platform's own option name, and each plugin's page has a Customise and download section that builds it for you:
{
toolbar: [ [ 'greeklower', 'greekupper', 'relations' ], [ 'operators', 'brackets' ] ],
toolbarScale: 1.2, // the toolbar's size, 1 is normal
width: 960, // the dialog's width, in px - its contents reflow to fit
height: 640, // the dialog's height, in px - the editing area grows to fit
history: false, // hide undo/redo
latex: true, // open with the LaTeX markup showing
insertAs: 'svg', // the dialog's starting "Insert as": 'mathml', 'svg', 'png' or 'latex'
colour: '#0f7a4d', // the accent colour
mathSize: 26, // the equation, in px
latexSize: 18, // the LaTeX markup, in px
sizeControl: true, // the Size slider for MathML too, not only images, to scale one equation against the rest
predictor: true, // suggested equations in a panel beside the editing area, as you type
predictorShow: 'both', // what each suggestion shows: 'mathml' (the default), 'latex' or 'both'
latexAsMaths: false // show LaTeX in the content as LaTeX while editing, not as maths
}
Leave out anything you do not want to change. toolbar: false hides the toolbar
altogether.
Where the editor comes from
Plugins are small. The equation editor itself — its script, stylesheet and fonts —
is loaded from fxtex.codecogs.com when it is first needed, along with
fxTeX Pro, which your licence key unlocks, so you always have the current
version without rebuilding. Each plugin has a server option to load it from somewhere
else, and a render URL option naming the
fxTeX Server that draws equations
inserted as images — change it to use a
self-hosted one.
MathML, an image or LaTeX
Most plugins let the author choose, in the equation dialog, how each equation is inserted:
MathML, the default: the mathematics itself, with its spoken form attached for screen readers. It needs nothing from us when the page is read, and scales and reflows with the text around it.
An SVG or PNG image, drawn by fxTeX Server, with the LaTeX as its
alt text. SVG stays sharp at any size; choose PNG where something downstream accepts only
bitmaps (it is drawn at twice screen resolution for the size chosen). It shows anywhere a picture can, but every view of the page is a request
to the rendering service. A Size slider beside Insert as, shown while that is
set to an image, sets how big it goes in against a normal equation — 100% is normal, 150%
half as big again. The image is sized in em, so it still follows the text around it. The dialog
remembers the size, and an equation reopened for editing starts at its own.
LaTeX, as text: $…$ for an equation in a
line of text (the Inline switch), $$…$$ for one on its own line. The
smallest form, and editable by hand, but it stays LaTeX until something typesets it: add
fxTeX or fxTeX Pro to the page that
shows your content, and it turns each one into MathML as the page loads. (Moodle writes
\(…\) for an inline equation instead, which Moodle's maths filters read —
the fxTeX maths filter, or MathJax.)
LaTeX shows as maths while it is edited. Each equation in the content, whether
inserted as LaTeX or written by hand, shows in the editor as the maths it is, and is still saved as
the LaTeX, character for character. It selects and deletes as one piece, and double-clicking it
opens it in the equation editor. In Tiptap, moving the cursor into one shows its LaTeX, to edit by
hand. LaTeX typed straight into the text shows as maths the next time the content is loaded.
latexAsMaths: false in the design (below) turns this off.
In all three the LaTeX travels with the equation, so in the editors that allow it an equation can be reopened by double-clicking it and edited later.
Chemistry, physics and pictures
The equation editor in the plugins for HTML editors, WordPress, Moodle and TiddlyWiki has
fxTeX Pro's packages on, as do the LTI tool and the Google add-on for a licensed institution: chemical formulae (\ce),
chemical structures and reaction schemes (\chemfig, \schemestart), the
physics package (\dv, \pdv and the rest) and LaTeX's
picture environment. Inserted as MathML or an image, they show anywhere. Inserted as
LaTeX, the page that shows them needs fxTeX Pro, as the free fxTeX has only \ce.
A stylesheet for published MathML
The plugins style MathML inside the editor for you. The page that finally shows your content needs one line to do the same:
<link rel="stylesheet" href="https://fxtex.codecogs.com/fxtex.css">
Or add fxTeX to that page, which carries the stylesheet itself and gives every equation the right-click menu.
More
User guide — what your authors see inside the equation dialog.
Writing your own — building a plugin for a platform not listed here.
How licensing works — which products need a licence, and when.
