#wasm #tiptap #prose-mirror #wysiwyg #execute-command

edita

edita is a simple block html-based editor built with rust

3 unstable releases

0.2.1 Feb 25, 2024
0.2.0 Feb 11, 2024
0.1.0 Jan 6, 2024

#114 in Text editors

Download history 15/week @ 2024-02-17 146/week @ 2024-02-24 16/week @ 2024-03-02 12/week @ 2024-03-09 10/week @ 2024-03-16 43/week @ 2024-03-30 9/week @ 2024-04-06

52 downloads per month

MIT/Apache

39KB
992 lines

edita

edita is a rust library for building headless block editors. It allows you to create custom block editors tailored to your specific needs.

edita in action

Features

  • Customizable Blocks: Define your own content processing blocks for various applications.
  • Command Execution: Execute commands to modify the editor's internal state.
  • Library agnostic: The core part of this lib has no dependencies allowing you to build on any framework.
  • Exportable: Nodes can be exported in any serializable format or be simply be coerced to popular formats like json, markdown and html.

Running

Currently edita is in active development so expect some breaking parts.

trunk serve

Check http://localhost:8000

Using as a library

  1. Add edita-core to your Cargo.toml:
[dependencies]
edita-core = "0.1.0"
  1. Create an editor with custom state, blocks, and commands.
  2. Use the editor to process and manipulate content.

License

This project is licensed under the MIT License.

Contributing

Contributions and ideas welcome. Feel free to open issues or submit pull requests on GitHub.

Dependencies

~11MB
~206K SLoC