shreevatsa / chaya

0 stars 0 forks source link

Initial Prosemirror setup #3

Closed shreevatsa closed 3 months ago

shreevatsa commented 3 months ago

Looks like I need to install the package etc:

corepack enable
yarn init -2
yarn add prosemirror-state
yarn add pdfjs-dist

and build it:

# Build JS.
js-dev:
    npx esbuild main.ts --outfile=main.js --bundle --watch --format=esm

# Build JS for production.
js-prod:
    npx esbuild main.ts --outfile=main.js --bundle --minify --format=esm
shreevatsa commented 3 months ago

So far, at least moved to this yarn/esbuild thing, even if no Prosemirror yet.

shreevatsa commented 3 months ago

I think it's done now, we have a basic PM view.

Next up, add:

shreevatsa commented 3 months ago

Prevented node deletion with f2af79850a79c52ed2f40bc32ece702d15de8caa. After adding OCR in d57d893cf401f7245cfa08c81a687f42cec8ca84, even more clear need for async rendering :-)

shreevatsa commented 3 months ago

Let me close this, I have some initial thing going by now.