fehmal-common-math-type-editor
v1.0.2
Published
Reusable MathType editor package from the common folder, built with React, CKEditor, and MathLive.
Maintainers
Readme
fehmal-common-math-type-editor
Reusable npm package created from your common.zip folder.
Install locally
npm install ../common-npm-packageUse in React
import MathEditor from 'fehmal-common-math-type-editor';
import 'fehmal-common-math-type-editor/style.css';
function App() {
const [value, setValue] = useState('');
return (
<MathEditor
value={value}
onChange={setValue}
/>
);
}Other exports
import {
MathEditor,
QuestionTextEditor,
QuestionPreview,
ChamEditor,
SpecialCharacterModal,
} from 'fehmal-common-math-type-editor';Build
npm install
npm run buildPublish
Change the package name in package.json if needed, then run:
npm login
npm publish --access publicIf npm asks for OTP, enter the real 6-digit code from your authenticator app.
Notes
PrivateRoute.jsx and Sidebar.jsx are kept in the source folder copy, but they are not exported because they depend on your app-specific AuthContext, router paths, and helper files.
