Giter Club home page Giter Club logo

Comments (5)

fengyun2 avatar fengyun2 commented on July 3, 2024 1

@wowlusitong 我也来提个建议:

  1. 编辑器支持全屏编辑
  2. 图片编辑宽高时,光标永远聚焦到最后,体验不好
  3. 复制粘贴进来的含有图片的文本内容,图片全部丢失了
  4. 编辑器最后可以有个字数限制的功能,可以实时反馈出当前文本还可以输入多少个文字
  5. 可以选择输入的字体大小功能
  6. 撤销和重做的图标建议修改一下,容易让人是图片旋转功能
  7. 粘贴进来的图片是否可以提供接口上传到服务器呢?
  8. 编辑器内容的左边最好能与工具栏左边对齐
  9. 编辑器能否提供readonly或者disabled属性呢?

from re-editor.

wowlusitong avatar wowlusitong commented on July 3, 2024 1

@fengyun2

  1. 已增加全屏编辑功能 2dc6292
  2. 是支持上传到服务器的,文档,也可参考demo CustomUploadImageApp.js
  3. 可以试试样式覆盖
  4. readonly是支持的,查看props

其他问题会陆续改善

from re-editor.

wowlusitong avatar wowlusitong commented on July 3, 2024
  1. 现在应该就是按图片原始长宽显示的
  2. 昨天临时做的,暂时是只支持等比缩放,有优化空间,后面可以增加支持单纯拉宽度和高度
  3. 很好的建议 👍
  4. 关于保存和显示,稍后可以提供一个html serialize,可以同时保存html #6

如果有好的实现方式,欢迎提PR,为开源项目贡献代码👏

from re-editor.

freedxz avatar freedxz commented on July 3, 2024

1 好👌可能我还是用这里的demo做的测试,没有拉新代码
2 如果是等比缩放,暂时也还好。额外提供单独拉高和拉宽是锦上添花。
3 这个组件我用过,只是还涉及到我用到的其他第三方的比如模态对话框来处理图片等,引入过多。我可能前端水平还不足以分离或者自己写模态对话框来完成处理
4 html serialize不建议吧,本来就不太适合用 dangerouslySetInnerHTML 来显示用户输入的内容,所以最好是存纯json,然后写组件来显示。

基于3提到的原因,我可能还贡献不了代码。

感谢你贡献

from re-editor.

freedxz avatar freedxz commented on July 3, 2024

好吧,我尝试一下。
已经fork, 可以的话再pull request给你

from re-editor.

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.