Giter Site home page Giter Site logo

vincentdchan / blocky-editor Goto Github PK

View Code? Open in Web Editor NEW
427.0 7.0 19.0 3.35 MB

A Notion-like editor built with blocks.

Home Page: https://blocky-editor.dev/

License: MIT License

TypeScript 96.27% CSS 1.15% SCSS 2.21% JavaScript 0.27% Shell 0.09%
editor notion web wysiwyg collaborative-editing rich-text-editor wysiwyg-editor react reactcomponents

blocky-editor's Introduction

I am Vincent Chan

I am a frontend developer, indie-maker.

Projects

Products

  • Terminal One(Creator): A blazingly fast, smart and and friendly terminal emulator for developers

  • Doodleboard(Co-frounder): An all-in-one whiteboard with built-in doodle styles to help you easily organize, and present your ideas.

Libraries

  • Blocky editor is an editor built with blocks.

  • PoloDB is an embedded JSON-based database written in Rust. It's designed to be lightweight and safe. It supports query semantics like MongoDB and WAL transactions.

Experimental POCs

  • CubyText is an open-source knowledge management app. (2022)

  • LichenScirpt is a lightweight language compiled to JavaScript/C. (2022)

  • Jetpack is an extremely fast JavaScript bundler written in C++. It can be compiled into a binary without any dependencies. It's portable, fast, and solid.

Sometimes, I will do some "hacking" on existing systems.

Also, I participated GSoC in 2018. I wrote a webpack plugin to help tree-shaking.

Interests

Play shaders on shadertoy(profile).

My works:

Writing

I will keep writing on Medium in English.

I have a blog in Chinese.

Sometimes I will share my view on Twitter. If you have any ideas about my project, send an email to [email protected], or submit an issue.

blocky-editor's People

Contributors

doodlewind avatar vincentdchan 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  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  avatar  avatar  avatar

blocky-editor's Issues

Inconsistent paired undo/redo

This is an easy-to-reproduce issue that may be encountered at high frequency.

To reproduce:

  • Insert or delete a word in blocky example
  • Undo -> redo -> undo -> redo

After second undo, the history state can't be recovered again :(

Open online demo fail

The demo link [https://blocky-editor.dev/] has unexpectedly closed the connection, maybe the domain has been expired?

Provide `charAt` for BlockyTextModel

Return the char at the index of the delta.
If the position is not a char(an embed), return null

  charAt(index: number): string | Record<string, unknown> | undefined

Code block

Implement the code block with codemirror.

Optional title block support

Blocky looks very promising!

I'm trying to find out if I can integrate Blocky as a simple input box component (e.g. using it in a comment section), since it's really light. But currently Blocky assumes a title block by default, while in this case title is generally not needed.

I did some quick tweaks based on current master branch, adding hasTitle: false config and it seems to work (doodlewind@448d376). But the behavior of enter breaks, so not sure if there is any other coupling related to title concept. Any ideas? Would love to see what I can do :)

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.