lexical icon indicating copy to clipboard operation
lexical copied to clipboard

Feature: MathType integration

Open binary111 opened this issue 1 year ago • 6 comments

Description

I am looking for integration with WYSIWYG Latex editor like MathType. as of now I don't see any Lexical plugin integration available to edit the Latex format.

Similar to other editor like CkEditor, requirement is to able to edit the latex using mathType.

https://github.com/wiris/html-integrations

Impact

This is one of the key feature missing compare to other editors.

binary111 avatar Sep 09 '25 13:09 binary111

It should be straightforward to develop this yourself if you have a need for it, lexical doesn't generally ship any components that integrate with third party solutions other than as demos in the playground.

etrepum avatar Sep 09 '25 20:09 etrepum

@etrepum Given that Lexical doesn’t provide built-in third-party integrations, I’d like to contribute a standalone MathType plugin following the project’s architecture. Would it be appropriate to proceed with this approach?

ajinkyap9 avatar Sep 10 '25 14:09 ajinkyap9

The best approach would be to have a separate package altogether that depends on MathType and has lexical as a peerDependency to provide this functionality, it does not need to be included with lexical

etrepum avatar Sep 10 '25 15:09 etrepum

Thank you for suggesting a standalone package approach for the MathType integration with Lexical. Before I start development, I'd like to confirm:

  1. I'll create a separate repository named lexical-mathtype-plugin under my GitHub account (ajinkya22-dev)
  2. Develop it as an independent npm package with Lexical as a peerDependency
  3. Once completed, share the repository link in the original issue

Is this the approach you're recommending? Are there any specific architectural patterns or API conventions I should follow to ensure smooth integration with the Lexical ecosystem?

ajinkyap9 avatar Sep 10 '25 16:09 ajinkyap9

Yes. How you develop it is up to you, I would not suggest following the lexical monorepo infrastructure as an example. It has a lot of legacy and Meta-specific quirks. The example folder has simpler projects that could be used as a starting point.

etrepum avatar Sep 10 '25 16:09 etrepum

@ajinkya22-dev - Are you working on this feature? Let me know if you require any help or I can contribute on this anyhow.

binary111 avatar Oct 05 '25 07:10 binary111