marktext / muya

📄 Future markdown editor for web browser applications development
MIT License
615 stars 54 forks source link

[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 8 months ago

uniconnector commented 8 months ago
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 commented 7 months ago

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