Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Feature]May I ask how to extend the API? In addition to the ones already provided below, I would like to extend the insertion #144

Open
uniconnector opened this issue Dec 27, 2023 · 1 comment
Labels
feature new feature request

Comments

@uniconnector
Copy link

const apis = {
  eventCenter: ['on', 'off', 'once'],
  editor: [
    'getState',
    'getMarkdown',
    'undo',
    'redo',
    'search',
    'find',
    'replace',
    'setContent',
    'focus',
    'selectAll',
  ],

May I ask how to extend the API? In addition to the ones already provided below, I would like to extend the insertion

@Jocs
Copy link
Member

Jocs commented Jan 11, 2024

It may not be easy to extend the API now. This year we plan to refactor it into a plug-in design. Then we can write plug-ins to extend functions. Now we may only extend the API based on references. like muya.editor

@Jocs Jocs added the feature new feature request label Jan 11, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
feature new feature request
Projects
None yet
Development

No branches or pull requests

2 participants