{{htmlmetatags>
metatag-keywords=(mathtype, google docs, office, math editor, equation, wiris, math, maths, lms, pages, documentation, user-guide, handwritten input, ckeditor)
metatag-description=(Learn how to use Mathtype Web to create math and chemistry notation for CKEditor.)
}}
====== MathType for CKEditor ======
===== Demos and integration downloads =====
| [[https://demo.wiris.com/integrations/ckeditor/|Demo site]] | [[https://store.wiris.com/en/products/downloads/mathtype/integrations#free_trial_individual|Download]] |
===== Requirements =====
* CKEditor 3.0 or higher installed.
* A valid license to install the integration in a production environment; otherwise, you can use the downloaded file just for demo purposes.
===== 1. Copy files and configuration =====
Unzip the CKEditor [MT] integration and copy the ''ckeditor_wiris'' directory into your CKEditor integration directory. For example, you will have ''ckeditor/plugins/ckeditor_wiris''. The name of the MathType integration directory must be ''ckeditor_wiris''.
==== Technologies ====
Our integration is available for various technologies. Click below on the technology you are using to see full instructions you should follow.
/*
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.editorConfig = function( config )
{
// Add[MT]to the integration list
config.extraPlugins += (config.extraPlugins.length == 0 ? '' : ',') + 'ckeditor_wiris';
};
If you use the Full MathML mode and for CKeditor versions higher than 4.0 you have to add this line as well:
config.allowedContent = true;
CKEDITOR.plugins.addExternal('ckeditor_wiris', 'https://www.wiris.net/demo/plugins/ckeditor/', 'plugin.js');
To Include MathType buttons in CKEditor's toolbar:
config.toolbar_Full.push({ name: 'wiris', items : [ 'ckeditor_wiris_formulaEditor','ckeditor_wiris_formulaEditorChemistry']});