
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
editorjs-mathlive
Advanced tools
The MathEditor Block for the Editor.js.

Get the package
npm i --save editorjs-mathlive
or
yarn add editorjs-mathlive
Add a new Tool to the tools property of the Editor.js initial config.
import MathEditor from 'editorjs-mathlive';
var editor = EditorJS({
tools: {
math: MathEditor,
}
});
Or init the MathEditor tool with additional settings
var editor = EditorJS({
tools: {
math: {
class: MathEditor,
inlineToolbar: true,
config: {
virtualKeyboardMode: 'manual',
defaultMode: 'math',
smartMode:false,
virtualKeyboardTheme:'material',
},
},
},
});
| Field | Type | Description |
|---|---|---|
virtualKeyboardMode | string | initial mode of virtual keyboard. manual by default |
defaultMode | string | initial editing mode. math by default |
smartMode | boolean | MathEditor mode. false by default |
virtualKeyboardTheme | string | MathEditor keyboard theme. material by default |
| Field | Type | Option values |
|---|---|---|
virtualKeyboardMode | string | manual, auto, onfocus,off |
defaultMode | string | math , inline-math, text |
smartMode | boolean | false, true |
virtualKeyboardTheme | string | material, apple |
This Tool returns data in the following format
| Field | Type | Description |
|---|---|---|
type | string | Style of math text |
latex | string | Mathematical equation text in latexs |
{
"type" : "math",
"data" : {
"type": "cdx-math-info",
"latex" : "e=mc^2"
}
}
FAQs
math editor for editorjs
The npm package editorjs-mathlive receives a total of 77 weekly downloads. As such, editorjs-mathlive popularity was classified as not popular.
We found that editorjs-mathlive demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.