by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Nicola
    @nicola
    Hello @marcelklehr nice to meet you
    I will ping you here in these days, thanks for the library that is a really great work
    I was looking for some sort of pluggable ot
    and I only could find monolithic piece of code
    and I found this :)
    Marcel Klehr
    @marcelklehr
    Heh, glad you like it :)
    Risto Novik
    @riston
    Hello, cool idea
    Marcel Klehr
    @marcelklehr
    @riston Thanks! :)
    Marcel Klehr
    @marcelklehr
    @nicola I've been giving some thought into #25 and I'm thinking that pre-commit ordering via some distributed algorithm is probably the best solution. This is what hive.js uses to allow spinning up multiple workers (actually it uses an ordering peer, but it's also pre-commit ordering).
    Bobby Z.
    @619
    Hello
    Marcel Klehr
    @marcelklehr
    @619 :wave:
    Which parts of the docs were unclear to you?
    Bobby Z.
    @619
    I'd like to implement google docs style collab editing on any website
    I started looking at dom-ot because you'd mentioned it on mutation-summary
    Took me several hours to understand what it was. I believed it was the entire application, not that it had to be used with Gulf
    Marcel Klehr
    @marcelklehr
    yeah, on its own dom-ot's appeal is hard to see
    Bobby Z.
    @619
    but setting the document.body as content editable and passing that instead
    Would this work? I'm getting ContenteditableDocument is not a constructor
    Marcel Klehr
    @marcelklehr
    It might work
    the error is unrelated, though, I think
    Bobby Z.
    @619
    What I'm trying to do is allow collab on any website by using mutation summary to observe dom changes, translating to OT, and sending it to other users
    How should I do this using gulf? I've tried using ContenteditableDocument as well as the basic example
    Marcel Klehr
    @marcelklehr
    You're probably doing it correctly and the library is broken
    Bobby Z.
    @619
    :(
    Marcel Klehr
    @marcelklehr
    to exports
    Bobby Z.
    @619
    I will try and get back to you
    Marcel Klehr
    @marcelklehr
    :ok_hand:
    Marcel Klehr
    @marcelklehr
    here you go, I've published a new version, as it might not be as easy as advertised for you to make that change
    @619 ^^
    Bobby Z.
    @619
    sorry, still doing it and fixing bugs
    Marcel Klehr
    @marcelklehr
    @619 I've published a new version of gulf-editor-contenteditable to npm :)
    Bobby Z.
    @619
    It works now
    But unfortunately what I want to do does not work
    Marcel Klehr
    @marcelklehr
    yay :)
    document.body
    Bobby Z.
    @619
    Screen Shot 2020-04-15 at 6.14.44 PM.png
    tried both document body and a p tag
    editing the text does not propagate the changes to other tabs
    Marcel Klehr
    @marcelklehr
    you're using both gulf-contenteditable and gulf-editor-contenteditable
    Bobby Z.
    @619
    Screen Shot 2020-04-15 at 6.15.53 PM.png
    Marcel Klehr
    @marcelklehr
    gulf-contenteditable is legacy
    Bobby Z.
    @619
    Yea I think also adding another div into the master document on server side is bad
    Marcel Klehr
    @marcelklehr
    don't use it
    Bobby Z.
    @619
    ok
    What should I use instead of a newly initialized div on the server side?
    for gulf.document.create
    Marcel Klehr
    @marcelklehr
    I don't know
    You want to sync the body then use something like <body></body>