Table demo?


#1

Any chance of adding a demo of how ProseMirror supports tables?

If not demo, maybe a bit of docs?

P.S. At the moment the project feels like an Orion rocket dripping hydrogen fuel on the starting table, in the sense that no freaking way a layman would be able to put any of it to use, and although the technicians look extra cool, they’re too busy and speak opaque internal lingo.


#2

(Much) more docs and demos are planned, as well as a more streamlined basic setup, but I won’t get to those until after I bring out version 1.0.


#3

That being said, this demo script does set up an editor with a table. It involves mixing the table module into the schema, and enabling the example-setup plugins.


#4

Sorry, trying to run it, feel clueless :slight_smile:

How do you run it?

Given its name, I assume it runs somewhere on the prosemirror.net demo site already?

P.S. Just looking for any demo that runs with tables, to validate a use case.


#5

No, that’s not one of the demos on the website. If you clone and npm install that repository, you can run npm run demo to start the demo server on port 8080.


#6

Hi, any chance to revive this question?

Currently doing git clone + npm install + npm run demo creates a broken server instance. It serves index.html and few other files, but fails fetching something important (apparently something with moduleserve).

Here’s the list of files that did succeed to load according to DevTools, in chronological order:

Here’s the list of HTTP 404 fails in chronological order:

Using node v6.9.1 x64 (Windows 7)

moduleserve (as mentioned above, installed with npm install) v0.8.3


#7

As mentioned in the readme, you have to install using yarn, not npm.


#8

I’m having trouble with running a table demo as well. Where are the instructions you mention? A good example would be nice. I’ve been working on tables for a week and while I’m making some progress it doesn’t seem to get easier.


#9

Tables aren’t included in the dev setup demo anymore since prosemirror-schema-tables was deprecated. You could clone https://github.com/prosemirror/prosemirror-tables, install it, and run npm run build_demo to run that repository’s demo.


#10

Any reason in particular why this was deprecated?


#11

It required extra features in the core, and was too limited to express things like colspan/rowspan which almost everybody needed. So look at prosemirror-tables instead, and see if that works for you.