Tiny MCE v6 - plugin
A Tiny MCE plugin that allows equations to be created in HTML.
Usage
- To create a new equation, click the
fx
button on the TinyMCE toolbar to launch the CodeCogs Equation Editor.
- Create your equation.
- Select OK to insert the equation into your document at the cursor position.
- Double-click existing equations to edit them in the Equation Editor.
Example toolbar, CodeCogs Equation Editor button is bottom right.
Quick Installation with NPM
- In your existing TinyMCE Editor npm build, install the Equation Editor plugin like:
npm i @codecogs/eqneditor-tinymce6
, if you don't have TinyMCE yet, see their documentation: Tiny MCE Editor
- Wherever you load in the scripts for your webpage displaying the editor, load the Equation Editor plugin after TinyMCE
- Additionally add the Equation Editor plugin to your TinyMCE initialisation script
- For a simple HTML webpage, the final initialisation should look something like this:
e.g. HTML, add the following to <head> :
<script src="[PATH]/node_modules/@codecogs/eqneditor-tinymce6/eqneditor.js"></script>
<script>
// Initialises TinyMCE text area
tinymce.init({
selector: '#mytextarea',
plugins: 'eqneditor',
toolbar: 'eqneditor'
});
</script>
- Open your webpage and you should see the Equation Editor icon appear in your toolbar like the example above.
Install Without NPM
- Install the Tiny MCE Editor as they recommend.
- Download TinyMCE-EqnEditor-plugin and uncompress it to your desktop or server.
Download TinyMCE Editor EqnEditor.zip
We provide you with the HTML file as an example, but you only actually need the JS file.
- Wherever you load in the scripts for your webpage displaying the editor, load the Equation Editor plugin after TinyMCE
- Additionally add the Equation Editor plugin to your TinyMCE initialisation script
- For a simple HTML webpage, the final initialisation should look something like this:
e.g. HTML, add the following to <head> :
<script src="PATH/TO/UNZIPPED/FILES/eqneditor.js"></script>
<script>
// Initialises TinyMCE text area
tinymce.init({
selector: '#mytextarea',
plugins: 'eqneditor',
toolbar: 'eqneditor'
});
</script>
- Open your webpage and you should see the Equation Editor icon appear in your toolbar like the example above.
Change History
- v1.2 (deprecated) - Our first version for TinyMCE v4, which builds on our earlier version for TinyMCE v3
- v1.3 (deprecated) - Improvement support for secure websites. Fixed bug that prevented equations being edited.
- v2 - Improved integration with TinyMCE, using TinyMCE dialogs that appear on page.
- v2.1 - Bug fix that allows more Eqn plugins to work with multiple edit areas on a single page.
- v2.2 - General update in line with the movement of CodeCogs to new servers. (Recommended upgrade).
- v3 - Adds compatibility for TinyMCE v6.