Add support for mathematical and chemical formulas for you Strapi project!
npm install strapi-math-chem``consoleUsing Yarn
yarn add 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.
`
./config/middlewares.js
``js
const externalURI = "www.wiris.net"
module.exports = ({ env }) => [
'strapi::errors',
{
name: 'strapi::security',
config: {
contentSecurityPolicy: {
directives: {
'script-src': ["'self'","'unsafe-eval'", externalURI],
'script-src-attr': ["'self'", "'unsafe-inline'", externalURI],
'font-src': ["'self'", externalURI],
'connect-src': ["'self'", externalURI, "analytics.strapi.io"],
'style-src': ["'self'", "'unsafe-inline'", externalURI],
'img-src': ["'self'", "blob:", "data:", externalURI],
},
}
},
},
'strapi::cors',
'strapi::poweredBy',
'strapi::logger',
'strapi::query',
'strapi::body',
'strapi::favicon',
'strapi::public',
];
`Then, you'll need to build your admin panel:
`console
Using Yarn
yarn buildOr using NPM
npm run build
``