:: Table of Contents

Tiny MCE v4.x - plugin v2

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.
Tiny MCE
Example toolbar, CodeCogs Equation Editor button is bottom right.

Quick Installation

  1. Install the Tiny MCE Editor as they recommend.
  2. Download TinyMCE-EqnEditor-plugin and uncompress it to your desktop or server.
    Download TinyMCE Editor EqnEditor.zip
  3. Find the folder where you installed Tiny MCE. For our purposes we will assume this is ~/tinymce.
  4. Open the Tiny Mce plugins folder, ~/tinymce/plugins and copy in the eqneditor directory from the uncompressed .
  5. Integrate Tiny MCE into your web page in the normal way.
  6. On your web page, locate the TinyMCE.init function, and modify (or add) the plugin property so it contains plugins : 'eqneditor',
  7. Now locate the toolbar property and add our new button eqneditor.
  8. The final code should resemble:

    Add to <head> :

    <script>
    tinymce.init({
    	plugins: [
    	"eqneditor advlist autolink lists link image charmap print preview anchor",
    	"searchreplace visualblocks code fullscreen",
    	"insertdatetime media table contextmenu paste" ],
    	toolbar: "undo redo | eqneditor link image | styleselect | bold italic | bullist numlist outdent indent	",
    	selector : "textarea"  
    	});
    </script>
    

    Add to <body> :

    <textarea name="content" style="width:100%"></textarea>
  9. Load your page and enjoy!
Copied to clipboard