wiris / html-integrations

The official JavaScript library for MathType, the leading formula editor and equation writer for the web by Wiris
https://wiris.com/solutions/integrations/html-editors/
MIT License
76 stars 53 forks source link

How can customise formula popup save button #972

Closed gokulramdev closed 3 months ago

gokulramdev commented 3 months ago

I am trying integrate with react wiris, I need a mathtype buttons only and after insert an maths formula I will integrate with my own ediotr how can handle custom formula inserts button , I need to place formula toolbar with custom menu bar like that own button wrap

`import React, { useState, useEffect, useRef } from "react"; import "@wiris/mathtype-generic/wirisplugin-generic";

const App = () => { const initializedRef = useRef(false);

useEffect(() => { if (!initializedRef.current) { const htmlEditorDiv = document.getElementById("htmlEditor");

  const toolbarDiv = document.getElementById("toolbar");

  // Initialize the toolbar.
  // Optionally, add MathType Properties
  window.wrs_int_init(htmlEditorDiv, toolbarDiv /*, mathTypeParameters*/);

  initializedRef.current = true;
}

}, []);

return (

Try me!

); };

export default App; `