Math Chem
This Strapi plugin for mathematical and chemical formulas provides advanced capabilities in creating and managing content. Easily insert, edit, and display equations in your web content, making it more informative and interactive.
Strapi plugin math-chem ∑🧪✨
This Strapi plugin for mathematical and chemical formulas provides advanced capabilities in creating and managing content. Easily insert, edit, and display equations in your web content, making it more informative and interactive.
This plugin allows you to easily integrate formulas into your Strapi-based website or application, expanding the functionality of your content management system.
Features
- Great formula coverage
- Publication-quality equations
- Styling and fonts
- Handwriting recognition
- Chemistry: ChemType
How it works
After installing and configuration, Strapi field "Rich text" will be custom CKEditor with math type and chem type.
Press the MathType icon or the ChemType icon to create and edit equations and formulas.
Output format is MathML:
Installation
To install this plugin, you need to add an NPM dependency to your Strapi application.
1# Using Yarn
2yarn add strapi-math-chem
3
4# Or using NPM
5npm install strapi-math-chem
Configuration
In order to display some content from an external source on your admin side you should configure your middlewares.js. Add resource with MathType Integrations to middlewares.js.
1./config/middlewares.js
1const externalURI = "www.wiris.net"
2module.exports = ({ env }) => [
3 'strapi::errors',
4 {
5 name: 'strapi::security',
6 config: {
7 contentSecurityPolicy: {
8 directives: {
9 'script-src': ["'self'","'unsafe-eval'", externalURI],
10 'script-src-attr': ["'self'", "'unsafe-inline'", externalURI],
11 'font-src': ["'self'", externalURI],
12 'connect-src': ["'self'", externalURI, "analytics.strapi.io"],
13 'style-src': ["'self'", "'unsafe-inline'", externalURI],
14 'img-src': ["'self'", "blob:", "data:", externalURI],
15 },
16 }
17 },
18 },
19 'strapi::cors',
20 'strapi::poweredBy',
21 'strapi::logger',
22 'strapi::query',
23 'strapi::body',
24 'strapi::favicon',
25 'strapi::public',
26];
Then, you'll need to build your admin panel:
1# Using Yarn
2yarn build
3
4# Or using NPM
5npm run build
Enjoy!
Install now
npm install strapi-math-chem
Create your own plugin
Check out the available plugin resources that will help you to develop your plugin or provider and get it listed on the marketplace.