Feature: MathType integration
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.
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 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?
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
Thank you for suggesting a standalone package approach for the MathType integration with Lexical. Before I start development, I'd like to confirm:
- I'll create a separate repository named
lexical-mathtype-pluginunder my GitHub account (ajinkya22-dev) - Develop it as an independent npm package with Lexical as a peerDependency
- 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?
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.
@ajinkya22-dev - Are you working on this feature? Let me know if you require any help or I can contribute on this anyhow.