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.12.0
  • Source
  • npm
  • Socket score

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

MathType for Froala Tweet

Type and handwrite mathematical notation with MathType.

Easily include quality math equations in your documents and digital content.

MathType for Froala screenshot

Table of Contents

Installation

  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:

    • 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 all tags, in order to allow MathML:

      ${}.froalaEditor({
        htmlAllowedTags:  ['.*'],
        htmlAllowedAttrs: ['.*'],
      })
      
    • Disable useClasses:

      ${}.froalaEditor({
        useClasses: false,
      })
      

      Notice that the example is assuming that you have the following directory structure:

      └───index.html
      └───node_modules
          └───@wiris/mathtype-froala
      

Services

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

The services are available 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 Apr 2019

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