Code Monkey home page Code Monkey logo

xkeditor-tiptap's Introduction

XK-Editor (Tiptap)

本项目基于 tiptap 开发而来,由于存在更好的方案 xkeditor-next, 所以本项目将不再开发。

更换的原因其实就是 tiptap 在大文本处理上性能不佳,另外加上 Vue2 配合 TypeScript 开发相对不完善,比如大量的 Vue 组件都不是用 TypeScript 写的或者没有类型声明文件,在开发中需要使用大量的适配方案,如 // @ts-ignore 或者 any 等。

Author License

简介 Introduction

XK-Editor (Tiptap) = TypeScript + Vue2.0 + Ace + TipTap;

基于 TipTap 和 Ace 编辑器重新开发的编辑器,拥有接近 Typora 的编辑方式,同时保留了分栏编辑的方式。

语法转换流程:

  • Markdown => Node:Markdown => Marked Token => Node
  • Node => Markdown:Node => Markdown
  • Markdown => HTML:Markdown => Marked Token => HTML

重写了 Marked 的 Lexer 和 Parser,使其支持模块化。Marked Token 通过自定义的转换器直接转换成 Node,避免多次转换导致的性能损失。

在 TipTap 的基础上完善 InputRules 和 PasteRules,支持 Markdown 语法编辑和 Markdown 内容的粘贴。同时增加了 Markdown 的生成器和解析器。

文档 Doc

暂无

维护者 Maintainer

XK-Editor 由 Otstar Lin 和下列 贡献者 的帮助下撰写和维护。

Otstar Lin - Personal Website · Blog · Github

许可证 License

License

根据 Apache License 2.0 许可证开源。

xkeditor-tiptap's People

Contributors

syfxlin avatar

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.