Tiny MCE v6 - plugin v3
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 Copy to document 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.