Git Product home page Git Product logo

Comments (7)

HarryChen0506 avatar HarryChen0506 commented on August 18, 2024

这个可以实现的,有时间我处理一下

from react-markdown-editor-lite.

sylingd avatar sylingd commented on August 18, 2024

这个可以实现的,有时间我处理一下

我觉得应该是提供一个插入内容的API

from react-markdown-editor-lite.

HarryChen0506 avatar HarryChen0506 commented on August 18, 2024

图片上传可以做成之前的类似onBeforeClear的api。
工具栏上其他的功能,也可以暴露出接口,回调参数有按钮类型和原始值,返回新的改变值。不过我觉得暂时没有必要做这个,搞得复杂化了。

from react-markdown-editor-lite.

sylingd avatar sylingd commented on August 18, 2024

图片上传可以做成之前的类似onBeforeClear的api。
工具栏上其他的功能,也可以暴露出接口,回调参数有按钮类型和原始值,返回新的改变值。不过我觉得暂时没有必要做这个,搞得复杂化了。

我觉得下个版本可以尝试暴露更多API,把工具栏的功能做成组件化的形式

from react-markdown-editor-lite.

HarryChen0506 avatar HarryChen0506 commented on August 18, 2024

是的,可以将工具栏独立出来,甚至用户自行添加新功能。这样的话,要升大版本了。可以考虑保留这个开箱即用的组件,同时提供一个高度配置化的组件。

from react-markdown-editor-lite.

ParaSLee avatar ParaSLee commented on August 18, 2024

这个可以实现的,有时间我处理一下

感谢

from react-markdown-editor-lite.

HarryChen0506 avatar HarryChen0506 commented on August 18, 2024

最近在忙另一个项目,所以这个issue解决的有些晚了,抱歉哈。刚才升到0.5.1了,你可以试一试,看看能不能实现一个自定义的图片上传对话框。如果方案不行,随时联系我们

from react-markdown-editor-lite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.