Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace textarea with a contenteditable element #7

Open
dpaez opened this issue Feb 11, 2019 · 4 comments
Open

Replace textarea with a contenteditable element #7

dpaez opened this issue Feb 11, 2019 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@dpaez
Copy link
Collaborator

dpaez commented Feb 11, 2019

This change would allow us to render more complex documents, like markdown docs with media embedded, for example.
The ideal contenteditable lib should give an easy way to extract the basic content (i.e.: what user writes) in order to continue using automerge for dealing with that part.
If we don't find a lib that met the conditions, then we'll need to update how we are handling the merges, e.g.: add some parse prior passing data to automerge and after reading, then pass that to the contenteditable lib to rebuild the representation.

@dpaez dpaez added the enhancement New feature or request label Feb 11, 2019
@dpaez dpaez self-assigned this Feb 11, 2019
@aslakhellesoy
Copy link

Hi - I’m the author of https://github.com/aslakhellesoy/automerge-codemirror

Perhaps something to consider?

@dpaez
Copy link
Collaborator Author

dpaez commented Mar 6, 2019

Hi @aslakhellesoy! 👋

Cool project looks nice. Have you tried integrating automerge with prosemirror instead of codemirror?

I think going in that direction would be better.

@aslakhellesoy
Copy link

Hi @dpaez

I haven’t had a use for rich text yet, so I haven’t tried Prosemirror.

@Frando
Copy link

Frando commented Mar 12, 2019

there's been some work on using automerge with slate: ept/slate-automerge by @ept, and humandx/slate-automerge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants