Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Feature Suggest: please support plugin in Mark Text #224

Closed
rainfu opened this issue Apr 30, 2018 · 3 comments
Closed

Feature Suggest: please support plugin in Mark Text #224

rainfu opened this issue Apr 30, 2018 · 3 comments
Labels
🐼 plugin you can write a plugin of Mark Text to implement this feature in the future 🦄 feature request New feature or request

Comments

@rainfu
Copy link

rainfu commented Apr 30, 2018

Description

[这个项目很惊艳,尤其是虚拟node与可视化写作~即便是对多年开发写作类软件的我。本希望贡献一些插件,不过目前插件对核心代码干挠过大,希望能在1·0之前尽快布局下插件机制,让关注者可以贡献代码、而核心团队专注于主版本更新]

Steps to reproduce

以目前其中的一个典型插件斗图为例,我查找了下,在以下6个文件中有引用

  1. Store/index.js
  2. Menus/edit.js
  3. App.vue
  4. Preference.md
  5. Uploadimage
  6. aidou.vue

其实也就是插件机制需要处理的问题

  1. Vue store自带Module 机制
  2. 插件中添加menu相关,程序启动时加载
  3. 动态组件?
  4. 插件可在插件区域内自动加载至设置文件中,比如
    { …, Plugins:{ Aidou:{ Enable:false, … } } }
  5. Plugin 代码

Expected behavior: [What you expected to happen]

新的开发者将代码放在src/plugins/aidou 下即可实现全部功能,删除插件删除代码即可。

建议

最好有意识的在editor,eventcenter,bus,parser中暴露一些api,让开发者能够获得更多处理事件机会

共勉:)

@rainfu rainfu changed the title Feature Suggest: Drop image Feature Suggest:尽快实现插件化机制 Apr 30, 2018
@Jocs
Copy link
Member

Jocs commented May 1, 2018

@rainfu 感谢你的建议,Mark Text 是有计划在 v1.0.0 发布之后添加插件机制,以及自定义主题。在 v1.0.0 主要还是完善基本功能,及编辑器稳定性。

@Jocs Jocs added the 🦄 feature request New feature or request label May 1, 2018
@Jocs Jocs changed the title Feature Suggest:尽快实现插件化机制 Feature Suggest: please support plugin in Mark Text May 7, 2018
@Jocs
Copy link
Member

Jocs commented May 7, 2018

@rainfu If you are interested in this project, welcome to contribute your code or give some opinions.

@Jocs Jocs added the 🐼 plugin you can write a plugin of Mark Text to implement this feature in the future label Jun 7, 2018
@Jocs
Copy link
Member

Jocs commented Jan 15, 2022

dup to #375

@Jocs Jocs closed this as completed Jan 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐼 plugin you can write a plugin of Mark Text to implement this feature in the future 🦄 feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants