New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@wiris/mathtype-froala

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wiris/mathtype-froala

MathType WEB for Froala editor

  • 7.8.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.5K
increased by42.53%
Maintainers
1
Weekly downloads
 
Created
Source

MathType for Froala Tweet

MathType is a WYSIWYG editor to edit math equations and chemistry formulas. This package allows integrating MathType into Froala.

MathType for Froala screenshot

Table of Contents

Installation

If you want to use MathType in Froala, please follow the steps below:

  1. Install the npm module
    npm install @wiris/mathtype-froala
    
  2. Load the module into your project
    <script src="node_modules/@wiris/mathtype-froala/wiris.js"></script>
    
  3. Update Froala configuration options follow the steps below:
    • Add MathType and ChemType buttons to the toolbar and the image menu:
      ${}.froalaEditor({
          toolbar = ['wirisEditor', 'wirisChemistry']
          toolbarButtons: ['wirisEditor', 'wirisChemistry'],
          toolbarButtonsMD: ['wirisEditor', 'wirisChemistry'],
          toolbarButtonsSM: ['wirisEditor', 'wirisChemistry'],
          toolbarButtonsXS: ['wirisEditor', 'wirisChemistry'],
          imageEditButtons: ['wirisEditor', 'wirisChemistry'],
      })
      
    • Allow MathML specification
      ${}.froalaEditor({
          htmlAllowedTags:  ['.*'],
          htmlAllowedAttrs: ['.*'],
      })
      
    • Set to false useClasesss option:
      ${}.froalaEditor({
          useClasses: false,
      })
      
    Notice that the example is assuming that you have the following directory structure and the plugin path may be adjusted.
    project
    └───node_modules
        └───@wiris/mathtype-lib-froala
    

Services

This npm module uses services remotely hosted to render MathML data. However is strongly recommended to install these services in your backend. This will allow you, among other things, to customize the backend service and store locally the images generated by MathType.

The services are available for the following technologies: Java, PHP, .NET and Ruby on Rails. If you use any of these technologies, please download the plugin for your backend technology from here.

In order to install the plugin along with the correspondent services, please follow the Froala install instructions.

Documentation

To find out more information about MathType, please go to the following documentation:

Keywords

FAQs

Package last updated on 09 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc