Skip to content

Latest commit

 

History

History
68 lines (46 loc) · 1.55 KB

File metadata and controls

68 lines (46 loc) · 1.55 KB

tinyMCE formula plugin

Formula plugin for tinyMCE WYSIWYG editor. Allows user to add equations and formulas inside tinymce.

Browser compatibility

  • IE8+
  • Chrome
  • Firefox
  • Safari
  • Opera

Dependencies

Usage

Install using bower.

bower install tinymce-formula

Install using npm.

npm install tinymce-formula

Or copy the source of the plugin to the plugins directory of your tinyMCE installation. Add the formula plugin to your tinyMCE configuration

plugins: "... formula",

Add optional configuration settings for the formula plugin, such as the external_plugins location.

tinymce.init({
  ...
  plugins: 'formula',
  toolbar: 'formula',
  external_plugins: {
    'formula': '/path/to/formula/plugin.min.js',
  formula: {
    mlang: 'mml'}
  }  
},

Configuration

path (optional if plugin installed inside tinymce/plugins folder, required otherwise)

If you have installed the plugin in a different folder than the tinymce/plugins folder then you need to specify the relative or full path where the plugin is installed. TinyMCE 5 requires that this is within 'external_plugins' (See https://www.tiny.cloud/docs/configure/integration-and-setup/#external_plugins)

###mlang (optional, defaults to 'latex')

If you want to the editor default to MathML instead of latex, define mlang: 'mml' in the options. The only two supported variables are latex and mml.

License

MIT licensed

Copyright (C) 2016 iCAP Lyon1, Panagiotis Tsavdaris