MCPcopy Index your code
hub / github.com/KonnorRogers/rhino-editor

github.com/KonnorRogers/rhino-editor @v0.18.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.18.2 ↗ · + Follow
559 symbols 987 edges 151 files 54 documented · 10% updated 3mo agov0.18.2 · 2026-02-02★ 33912 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Purpose

To create a grab and go WYSIWYG editing experience that can hook into Ruby on Rails ActionText backend. Currently this package does so using TipTap but will most likely include another integration for ProseMirror to allow for both Markdown + WYSIWYG editing.

Documentation

https://rhino-editor.vercel.app

Local Development

This section is for contributing to Rhino Editor.

Getting up and running locally is hopefully quite painless. We have a test suite using Ruby on Rails and is intended to provide a good demonstration of how this package can hook into ActionText.

Contributions should be made on a feature branch in a forked repository.

Prerequisites

  • Ruby 3.1.2
  • Rails 7.0.4
  • PNPM (npm install -g pnpm)
  • Playwright (npm install -g playwright)
  • Node >= 16
  • Docker (Used to run a simulated S3 server)
  • A Docker virtualizer (Orbstack or Docker Desktop)
  • Overmind (Preferred, not needed gem install overmind)

Installation

Run the following commands in the bash to setup dependencies:

git clone https://github.com/konnorrogers/rhino-editor
cd rhino-editor
pnpm run setup

Running the server

The easiest way to run the server is using Overmind. First start up your Docker virtualizer, then in two termainals…

Terminal 1:

pnpm run start

Terminal 2:

cd tests/rails
overmind start -f Procfile.dev

Then navigate to localhost:5100

Without Overmind

To run the server without Overmind do the following in seperate terminals:

bin/vite dev --clobber
bin/rails s
docker compose up --build

Then navigate to localhost:5100

Running the test suite

Make sure to have the docker server up and running, the test suite will fail without it.

docker compose up --build
bundle exec rails test:all

Listening for changes to the package

To listen for changes, keep your rails server running and open a new terminal with the following:

pnpm run start

This will start an ESBuild watcher process. Vite in Rails will automatically pick up changes.

Adding a changelog entry

To add a changelog entry, we use https://github.com/changesets/changesets. Run the following command and then answer the prompts:

pnpm changeset

Roadmap to v1

  • [ ] - Collaboration Extension. Support collaboration!
  • [ ] - Document slots, CSS properties, Extending ActionText, and show common demo examples
  • [ ] - Create a ProseMirror base for a markdown + rich text editor
  • [ ] - Move the TipTap editor to extend the ProseMirror editor.
  • [ ] - Show how to do table editing
  • [ ] - Show how to do embeds
  • [ ] - Show how to do mentions
  • [ ] - Add testing for the basic operations bold, strike, etc.
  • [ ] - Add testing for ActionText / Trix compatibility.

Extension points exported contracts — how you extend this code

AttachmentManagerAttributes (Interface)
(no doc) [1 implementers]
src/exports/attachment-manager.ts
CaptionParams (Interface)
(no doc)
src/internal/to-default-caption.ts
GlobalEventHandlersEventMap (Interface)
(no doc)
src/exports/attachment-upload.ts
GlobalEventHandlersEventMap (Interface)
(no doc)
src/exports/events/attachment-remove-event.ts
GlobalEventHandlersEventMap (Interface)
(no doc)
src/exports/events/rhino-update-event.ts
SelectionChangeProps (Interface)
(no doc)
src/exports/events/selection-change-event.ts

Core symbols most depended-on inside this repo

create
called by 20
tests/rails/app/controllers/posts_controller.rb
tiptap
called by 20
tests/unit/helpers/create-editor.js
toSvg
called by 19
src/internal/icons.ts
findAttribute
called by 17
src/exports/extensions/find-attribute.ts
stringMap
called by 16
src/internal/string-map.ts
elementDisabled
called by 14
src/exports/elements/tip-tap-editor.ts
fetch
called by 12
tests/rails/app/frontend/controllers/embed_controller.js
define
called by 11
src/internal/elements/base-element.ts

Shape

Method 296
Class 140
Function 99
Interface 24

Languages

TypeScript70%
Ruby30%

Modules by API surface

src/exports/elements/tip-tap-editor.ts44 symbols
src/exports/elements/tip-tap-editor-base.ts44 symbols
src/exports/extensions/attachment.ts28 symbols
src/exports/attachment-upload.ts27 symbols
src/exports/attachment-manager.ts22 symbols
tests/rails/test/application_system_test_case.rb15 symbols
src/exports/elements/attachment-editor.ts15 symbols
docs/plugins/builders/helpers.rb14 symbols
tests/rails/test/system/attachment_attributes_test.rb12 symbols
src/exports/extensions/bubble-menu.ts12 symbols
src/internal/elements/base-element.ts11 symbols
docs/config/esbuild.defaults.js11 symbols

For agents

$ claude mcp add rhino-editor \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page