Coder Social home page Coder Social logo

magic-editor's Introduction

magic-editor's People

Contributors

fantasticit avatar seo-rii avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

magic-editor's Issues

开发富文本编辑器所遇到的问题与思考

关于 UI 库依赖的选择与开发

为了开发一款富文本编辑器,自然涉及到 UI 控件交互相关开发。无论选择哪种组件库,比如 antd、semi-design 都无法避免大量无效(或重复)代码依赖,而如果选择自行开发相关 UI 控件,则会带来更多开发量。

  1. 选择 antd、semi-design,问题:可能导致代码冗余,且无法满足使用方个性化要求,且可能与业务项目组件库选型冲突
  2. 自行开发,问题:UI相关控件代码量开发过大,舍本逐末(或许可结合 headless-ui )
  3. 不提供UI交互,只提供相关命令调用,问题:使用成本过高

css 方案

为了丰富完善富文本编辑器的样式控制,需满足可自定义主题、可扩展主题。

  1. 使用 styled-components,问题:开发效率过慢,麻烦,且有运行时消耗与依赖,也会增大打包体积
  2. 使用 css-modules,问题:需要额外处理css样式文件的打包与导入

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.